github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_group_edit_promotions.html (about) 1 {{template "header.html" . }} 2 <div class="colstack panel_stack"> 3 {{template "panel_group_menu.html" . }} 4 <main class="colstack_right"> 5 {{template "panel_before_head.html" . }} 6 <div class="colstack_item colstack_head"> 7 <div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}}</h1></div> 8 </div> 9 <form action="/panel/groups/edit/promotions/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post"> 10 <div class="colstack_item panel_group_promotions"> 11 {{range .Promotions}} 12 <div class="rowitem"> 13 <a href="#p-{{.ID}}">{{.FromGroup.Name}} -> {{.ToGroup.Name}}{{if .TwoWay}} (two way){{end}}</a> 14 {{if .Level}}<span> - {{lang "panel_group_promotions_row_level_prefix"}}{{.Level}}</span>{{end}} 15 {{if .Posts}}<span> - {{lang "panel_group_promotions_row_posts_prefix"}}{{.Posts}}</span>{{end}} 16 {{if .RegisteredFor}}<span> - {{langf "panel_group_promotions_row_registered_minutes" .RegisteredFor}}</span>{{end}} 17 <div class="to_right"> 18 <a href="/panel/groups/promotions/delete/submit/{{$.ID}}-{{.ID}}?s={{$.CurrentUser.Session}}"><button form="nn">{{lang "panel_group_promotions_row_delete_button"}}</button></a> 19 </div> 20 </div>{{end}} 21 <div class="rowitem"> 22 <button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button> 23 </div> 24 </div> 25 </form> 26 27 {{if .CurrentUser.Perms.EditGroup}} 28 <div class="colstack_item colstack_head"> 29 <div class="rowitem"><h1>{{lang "panel_group_promotions_create_head"}}</h1></div> 30 </div> 31 <div class="colstack_item the_form"> 32 <form action="/panel/groups/promotions/create/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post"> 33 <div class="formrow"> 34 <div class="formitem formlabel"><a>{{lang "panel_group_promotions_from"}}</a></div> 35 <div class="formitem"> 36 <select name="from"> 37 {{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}} 38 </select> 39 </div> 40 </div> 41 <div class="formrow"> 42 <div class="formitem formlabel"><a>{{lang "panel_group_promotions_to"}}</a></div> 43 <div class="formitem"> 44 <select name="to"> 45 {{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}} 46 </select> 47 </div> 48 </div> 49 <div class="formrow"> 50 <div class="formitem formlabel"><a>{{lang "panel_group_promotions_two_way"}}</a></div> 51 <div class="formitem"> 52 <select name="two-way" disabled> 53 <option value=1>{{lang "option_yes"}}</option> 54 <option selected value=0>{{lang "option_no"}}</option> 55 </select> 56 </div> 57 </div> 58 <div class="formrow"> 59 <div class="formitem formlabel"><a>{{lang "panel_group_promotions_level"}}</a></div> 60 <div class="formitem"><input name="level" type="number" value="0"></div> 61 </div> 62 <div class="formrow"> 63 <div class="formitem formlabel"><a>{{lang "panel_group_promotions_posts"}}</a></div> 64 <div class="formitem"><input name="posts" type="number" value="0"></div> 65 </div> 66 <div class="formrow"> 67 <div class="formitem formlabel"><a>{{lang "panel_group_promotion_reg_for"}}</a></div> 68 <div class="formitem"> 69 <input name="reg_months" type="number" value="0">{{lang "panel_group_promotion_reg_months_suffix"}}<br> 70 <input name="reg_days" type="number" value="0">{{lang "panel_group_promotion_reg_days_suffix"}}<br> 71 <input name="reg_hours" type="number" value="0">{{lang "panel_group_promotion_reg_hours_suffix"}} 72 </div> 73 </div> 74 <div class="formrow form_button_row"> 75 <div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_group_promotions_create_button"}}</button></div> 76 </div> 77 </form> 78 </div> 79 {{end}} 80 81 </main> 82 </div> 83 {{template "footer.html" . }}