-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_basicporto.cshtml
More file actions
27 lines (25 loc) · 1.21 KB
/
_basicporto.cshtml
File metadata and controls
27 lines (25 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="sc-element">
@Edit.Toolbar(Content, settings: new { show = "always" })
</div>
@Edit.Toolbar(actions: "new", contentType: "categories") @Edit.Toolbar(actions: "new", contentType: "questions")
@foreach(var cat in AsDynamic(App.Data["categories"]).OrderBy(o => o.catOrder)){
<div id="@cat.catID">
<div>@Edit.Toolbar(cat, actions: "edit")<h3>@cat.catDesc</h3></div>
<div id="@(cat.catID + "_items")" class="toggle toggle-primary toggle-simple" data-plugin-toggle="toggle">
@foreach(var q in AsDynamic(App.Data["questions"]).Where(c => c.qCat == cat.catID).OrderBy(o => o.qOrder)){
if(q.qActive == true) {
@: <section id="@q.qCat" class="toggle active">
} else {
@: <section id="@q.qCat" class="toggle">
}
@: <label>@q.qDesc @Edit.Toolbar(q, actions: "edit")</label>
@: <div class="toggle-content">
@: <p>@Html.Raw(q.qAnswer)</p>
@: </div>
@: </section>
}
</div>
</div>
<br>
}
<div @Edit.Attribute("quick-edit-config", new { modules = new { enable = false }})></div>