github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_themes_widgets_widget.html (about) 1 <div class="formrow"> 2 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_type"}}</a></div> 3 <div class="formitem"> 4 <select class="wtype_sel" name="wtype"> 5 <option value="about"{{if eq .Type "about"}}selected{{end}}>{{lang "panel_themes_widgets_type_about"}}</option> 6 <option value="simple"{{if eq .Type "simple"}}selected{{end}}>{{lang "panel_themes_widgets_type_simple"}}</option> 7 <option value="wol"{{if eq .Type "wol"}}selected{{end}}>{{lang "panel_themes_widgets_type_wol"}}</option> 8 <option value="wol_context"{{if eq .Type "wol_context"}}selected{{end}}>{{lang "panel_themes_widgets_type_wol_context"}}</option> 9 <option value="search_and_filter"{{if eq .Type "search_and_filter"}}selected{{end}}>{{lang "panel_themes_widgets_type_search_and_filter"}}</option> 10 </select> 11 </div> 12 </div> 13 <div class="formrow"> 14 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_enabled"}}</a></div> 15 <div class="formitem"> 16 <select name="wenabled"> 17 <option{{if .Enabled}} selected{{end}} value=1>{{lang "option_yes"}}</option> 18 <option{{if not .Enabled}} selected{{end}} value=0>{{lang "option_no"}}</option> 19 </select> 20 </div> 21 </div> 22 <div class="formrow"> 23 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_location"}}</a></div> 24 <div class="formitem"> 25 <input name="wlocation"value="{{.Location}}"> 26 </div> 27 </div> 28 <div class="wtypes wtype_{{.Type}}"> 29 <div class="formrow w_simple w_about"> 30 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_name"}}</a></div> 31 <div class="formitem"> 32 <input name="wname"value="{{index .Data "Name"}}"> 33 </div> 34 </div> 35 <div class="formrow w_simple w_about"> 36 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_body"}}</a></div> 37 <div class="formitem"> 38 <textarea name="wtext"class="wtext">{{index .Data "Text"}}</textarea> 39 </div> 40 </div> 41 <div class="formrow w_default"> 42 <div class="formitem formlabel"><a>{{lang "panel_themes_widgets_raw_body"}}</a></div> 43 <div class="formitem"> 44 <textarea name="wbody"class="rwtext">{{.RawBody}}</textarea> 45 </div> 46 </div> 47 </div> 48 <div class="formrow form_button_row"> 49 <div class="formitem"> 50 <button name="panel-button"class="formbutton widget_save">{{lang "panel_themes_widgets_save"}}</button> 51 <a href="/panel/themes/widgets/delete/submit/{{.ID}}"> 52 <button name="panel-button"class="formbutton widget_delete">{{lang "panel_themes_widgets_delete"}}</button> 53 </a> 54 </div> 55 </div>