dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

room-edit.gohtml (2289B)


      1 {{ define "sub-content" }}
      2 <div class="page-header" style="margin: 0 0 15px 0;">
      3     <h4 class="pull-left" style="margin: 6px 0;">
      4         {{ if .Data.IsEdit }}
      5             {{ t "Update room" . }}
      6         {{ else }}
      7             {{ t "Create room" . }}
      8         {{ end }}
      9     </h4>
     10     <div class="pull-right" style="position:relative;top:0px;"></div>
     11     <div class="clearfix"></div>
     12 </div>
     13 
     14 <form autocomplete="on" novalidate method="post">
     15     <input type="hidden" name="csrf" value="{{ .CSRF }}" />
     16     <fieldset>
     17         <div class="row">
     18             <div class="center-block">
     19             </div>
     20         </div>
     21         <div class="row">
     22             <div class="col-sm-12">
     23 
     24                 <div class="form-group">
     25                     <div class="form-check form-check-1">
     26                         <div class="checkbox-wrapper form-check-input">
     27                             <input class="my-cbx" type="checkbox" name="is_ephemeral" id="is_ephemeral" value="1"{{ if .Data.IsEphemeral }} checked{{ end }} />
     28                             <label for="is_ephemeral" class="toggle"><span></span></label>
     29                         </div>
     30                         <label class="form-check-label" for="is_ephemeral">{{ t "Is Ephemeral" . }}</label>
     31                     </div>
     32                     
     33                     <div class="form-check form-check-1">
     34                         <div class="checkbox-wrapper form-check-input">
     35                             <input class="my-cbx" type="checkbox" name="is_listed" id="is_listed" value="1"{{ if .Data.IsListed }} checked{{ end }} />
     36                             <label for="is_listed" class="toggle"><span></span></label>
     37                         </div>
     38                         <label class="form-check-label" for="is_listed">{{ t "Publicly listed" . }}</label>
     39                     </div>
     40                 </div>
     41 
     42                 <div class="form-group">
     43                     {{ if .Data.IsEdit }}
     44                         <input type="submit" class="btn btn-primary" value="{{ t "Update room" . }}" />
     45                     {{ else }}
     46                         <input type="submit" class="btn btn-primary" value="{{ t "Create room" . }}" />
     47                     {{ end }}
     48                 </div>
     49 
     50             </div>
     51         </div>
     52     </fieldset>
     53 </form>
     54 {{ end }}