2019-01-21 12:27:59 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_type"}}</a></div>
|
|
|
|
<div class="formitem">
|
|
|
|
<select class="wtype_sel" name="wtype">
|
2020-04-05 03:18:36 +00:00
|
|
|
<option value="about"{{if eq .Type "about"}}selected{{end}}>{{lang "panel_themes_widgets_type_about"}}</option>
|
|
|
|
<option value="simple"{{if eq .Type "simple"}}selected{{end}}>{{lang "panel_themes_widgets_type_simple"}}</option>
|
|
|
|
<option value="wol"{{if eq .Type "wol"}}selected{{end}}>{{lang "panel_themes_widgets_type_wol"}}</option>
|
|
|
|
<option value="wol_context"{{if eq .Type "wol_context"}}selected{{end}}>{{lang "panel_themes_widgets_type_wol_context"}}</option>
|
|
|
|
<option value="search_and_filter"{{if eq .Type "search_and_filter"}}selected{{end}}>{{lang "panel_themes_widgets_type_search_and_filter"}}</option>
|
2019-01-21 12:27:59 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_enabled"}}</a></div>
|
|
|
|
<div class="formitem">
|
|
|
|
<select name="wenabled">
|
2019-12-31 21:57:54 +00:00
|
|
|
<option{{if .Enabled}} selected{{end}} value=1>{{lang "option_yes"}}</option>
|
|
|
|
<option{{if not .Enabled}} selected{{end}} value=0>{{lang "option_no"}}</option>
|
2019-01-21 12:27:59 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_location"}}</a></div>
|
|
|
|
<div class="formitem">
|
2020-04-02 22:24:32 +00:00
|
|
|
<input name="wlocation"value="{{.Location}}">
|
2019-01-21 12:27:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="wtypes wtype_{{.Type}}">
|
|
|
|
<div class="formrow w_simple w_about">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_name"}}</a></div>
|
|
|
|
<div class="formitem">
|
2020-04-02 22:24:32 +00:00
|
|
|
<input name="wname"value="{{index .Data "Name"}}">
|
2019-01-21 12:27:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow w_simple w_about">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_body"}}</a></div>
|
|
|
|
<div class="formitem">
|
2020-04-02 22:24:32 +00:00
|
|
|
<textarea name="wtext"class="wtext">{{index .Data "Text"}}</textarea>
|
2019-01-21 12:27:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow w_default">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_widgets_raw_body"}}</a></div>
|
|
|
|
<div class="formitem">
|
2020-04-02 22:24:32 +00:00
|
|
|
<textarea name="wbody"class="rwtext">{{.RawBody}}</textarea>
|
2019-01-21 12:27:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow form_button_row">
|
|
|
|
<div class="formitem">
|
2020-04-05 03:18:36 +00:00
|
|
|
<button name="panel-button"class="formbutton widget_save">{{lang "panel_themes_widgets_save"}}</button>
|
2019-01-21 12:27:59 +00:00
|
|
|
<a href="/panel/themes/widgets/delete/submit/{{.ID}}">
|
2020-04-05 03:18:36 +00:00
|
|
|
<button name="panel-button"class="formbutton widget_delete">{{lang "panel_themes_widgets_delete"}}</button>
|
2019-01-21 12:27:59 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|