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

     1  <div class="colstack_item colstack_head rowhead">
     2  	<div class="rowitem"><h1>{{lang "account_privacy_head"}}</h1></div>
     3  </div>
     4  <div class="colstack_item the_form">
     5  	<form action="/user/edit/privacy/submit/?s={{.CurrentUser.Session}}" method="post">
     6  		<input name="o_profile_comments" value="{{.ProfileComments}}" type="hidden">
     7  		<!--<input name="o_receive_convos" value="{{if .ReceiveConvos}}1{{else}}0{{end}}" type="hidden">-->
     8  		<input name="o_enable_embeds" value="{{if .EnableEmbeds}}1{{else}}0{{end}}" type="hidden">
     9  		<div class="formrow real_first_child">
    10  			<div class="formitem formlabel">{{lang "account_privacy_profile_comments"}}</div>
    11  			<div class="formitem"><select name="profile_comments">
    12  				<option{{if eq .ProfileComments 1}} selected{{end}} value=1>{{lang "account_privacy_profile_comments_public"}}</option>
    13  				<option{{if eq .ProfileComments 2}} selected{{end}} value=2>{{lang "account_privacy_profile_comments_registered"}}</option>
    14  				<option{{if eq .ProfileComments 4}} selected{{end}} value=4>{{lang "account_privacy_profile_comments_self"}}</option>
    15  			</select></div>
    16  		</div>
    17  		<!--<div class="formrow">
    18  			<div class="formitem formlabel"><a>Receive Conversations</a></div>
    19  			<div class="formitem"><select name="receive_convos">
    20  				<option{{if .ReceiveConvos}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    21  				<option{{if not .ReceiveConvos}} selected{{end}} value=0>{{lang "option_no"}}</option>
    22  			</select></div>
    23  		</div>-->
    24  		<div class="formrow">
    25  			<div class="formitem formlabel"><a>{{lang "account_privacy_enable_embeds"}}</a></div>
    26  			<div class="formitem"><select name="enable_embeds">
    27  				<option{{if .EnableEmbeds}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    28  				<option{{if not .EnableEmbeds}} selected{{end}} value=0>{{lang "option_no"}}</option>
    29  			</select></div>
    30  		</div>
    31  		<div class="formrow">
    32  			<div class="formitem"><button name="account-button" class="formbutton form_middle_button">{{lang "account_privacy_button"}}</button></div>
    33  		</div>
    34  	</form>
    35  </div>