2014-08-14 11:42:21 +05:30
|
|
|
{{template "ng/base/head" .}}
|
|
|
|
{{template "ng/base/header" .}}
|
2014-08-23 17:54:02 +05:30
|
|
|
{{template "org/base/header" .}}
|
2014-08-14 11:42:21 +05:30
|
|
|
<div id="setting-wrapper" class="main-wrapper">
|
2015-02-23 04:54:49 +05:30
|
|
|
<div id="org-setting" class="container clear">
|
|
|
|
{{template "org/settings/nav" .}}
|
|
|
|
<div class="grid-4-5 left">
|
|
|
|
<div class="setting-content">
|
|
|
|
{{template "ng/base/alert" .}}
|
|
|
|
<div id="setting-content">
|
|
|
|
<div id="user-profile-setting-content" class="panel panel-radius">
|
|
|
|
<div class="panel-header">
|
|
|
|
<strong>{{.i18n.Tr "org.settings.options"}}</strong>
|
2014-09-06 02:58:09 +05:30
|
|
|
</div>
|
2015-02-23 04:54:49 +05:30
|
|
|
<form class="form form-align panel-body" id="org-setting-form" action="{{AppSubUrl}}/org/{{.Org.LowerName}}/settings" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="update">
|
|
|
|
<div class="field">
|
|
|
|
<label class="req" for="orgname">{{.i18n.Tr "username"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="orgname" name="uname" value="{{.Org.Name}}" data-orgname="{{.Org.Name}}" required />
|
|
|
|
</div>
|
|
|
|
<div class="white-popup-block mfp-hide" id="change-orgname-modal">
|
|
|
|
<h1 class="text-red">{{.i18n.Tr "org.settings.change_orgname"}}</h1>
|
|
|
|
<p>{{.i18n.Tr "org.settings.change_orgname_desc"}}</p>
|
|
|
|
<br>
|
|
|
|
<button class="btn btn-red btn-large btn-radius" id="change-orgname-submit">{{.i18n.Tr "settings.continue"}}</button>
|
|
|
|
<button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label for="full-name">{{.i18n.Tr "org.settings.full_name"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" value="{{.Org.FullName}}" />
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label class="req" for="email">{{.i18n.Tr "email"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.Org.Email}}" required />
|
|
|
|
</div>
|
|
|
|
<div class="field clear">
|
|
|
|
<label class="left" for="desc">{{.i18n.Tr "org.org_desc"}}</label>
|
|
|
|
<textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc">{{.Org.Description}}</textarea>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label for="website">{{.i18n.Tr "org.settings.website"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.Org.Website}}" />
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label for="location">{{.i18n.Tr "org.settings.location"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.Org.Location}}" />
|
|
|
|
</div>
|
2015-07-28 15:31:27 +05:30
|
|
|
<div class="field {{if DisableGravatar}}hide{{end}}">
|
2015-07-28 20:06:41 +05:30
|
|
|
<label class="req" for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
|
2015-02-23 04:54:49 +05:30
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.Org.AvatarEmail}}" />
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<span class="form-label"></span>
|
|
|
|
<button class="btn btn-green btn-large btn-radius" id="change-orgname-btn" href="#change-orgname-modal">{{.i18n.Tr "org.settings.update_settings"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-14 11:42:21 +05:30
|
|
|
</div>
|
|
|
|
{{template "ng/base/footer" .}}
|