github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/create_topic.html (about)

     1  {{template "header.html" . }}
     2  <main id="create_topic_page">
     3  	<div class="rowblock rowhead">
     4  		<div class="rowitem"><h1>{{lang "create_topic_head"}}</h1></div>
     5  	</div>
     6  	<div class="rowblock the_form">
     7  		<form id="quick_post_form" enctype="multipart/form-data" action="/topic/create/submit/?s={{.CurrentUser.Session}}" method="post"></form>
     8  		<div class="formrow real_first_child">
     9  			<div class="formitem formlabel"><a>{{lang "create_topic_board"}}</a></div>
    10  			<div class="formitem"><select form="quick_post_form" id="topic_board_input" name="board">
    11  				{{range .ItemList}}<option{{if eq .ID $.FID}} selected{{end}} value="{{.ID}}">{{.Name}}</option>{{end}}
    12  			</select></div>
    13  		</div>
    14  		<div class="formrow">
    15  			<div class="formitem formlabel"><a>{{lang "create_topic_name"}}</a></div>
    16  			<div class="formitem"><input form="quick_post_form" name="name" type="text" placeholder="{{lang "create_topic_name"}}" required></div>
    17  		</div>
    18  		<div class="formrow">
    19  			<div class="formitem formlabel"><a>{{lang "create_topic_content"}}</a></div>
    20  			<div class="formitem"><textarea form="quick_post_form" class="large" id="topic_content" name="content" placeholder="{{lang "create_topic_placeholder"}}" required></textarea></div>
    21  		</div>
    22  		<div class="formrow">
    23  			<button form="quick_post_form" name="topic-button" class="formbutton">{{lang "create_topic_create_button"}}</button>
    24  			{{if .CurrentUser.Perms.UploadFiles}}
    25  			<input name="quick_topic_upload_files" form="quick_post_form" id="quick_topic_upload_files" multiple type="file" class="auto_hide">
    26  			<label for="quick_topic_upload_files" class="formbutton add_file_button">{{lang "create_topic_add_file_button"}}</label>{{end}}
    27  			<div id="upload_file_dock"></div>
    28  		</div>
    29  	</div>
    30  </main>
    31  {{template "footer.html" . }}