Edit mode improvements

This commit is contained in:
Shaun Walker
2019-09-05 13:44:27 -04:00
parent 65cb295e05
commit 22420f2b43
18 changed files with 179 additions and 82 deletions

View File

@ -62,6 +62,17 @@
</select>
</td>
</tr>
<tr>
<td>
<label for="Name" class="control-label">Edit Mode? </label>
</td>
<td>
<select class="form-control" @bind="@editmode">
<option value="True">Yes</option>
<option value="False">No</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="Name" class="control-label">Theme: </label>
@ -127,6 +138,7 @@
string parentid;
string order;
string isnavigation;
string editmode;
string themetype;
string layouttype;
string icon;
@ -161,6 +173,7 @@
}
order = page.Order.ToString();
isnavigation = page.IsNavigation.ToString();
editmode = page.EditMode.ToString();
themetype = page.ThemeType;
layouttype = page.LayoutType;
icon = page.Icon;
@ -195,6 +208,7 @@
page.Path = path;
page.Order = (order == null ? 1 : Int32.Parse(order));
page.IsNavigation = (isnavigation == null ? true : Boolean.Parse(isnavigation));
page.EditMode = (editmode == null ? true : Boolean.Parse(editmode));
page.ThemeType = themetype;
page.LayoutType = (layouttype == null ? "" : layouttype);
page.Icon = (icon == null ? "" : icon);