org settings: Restructure org-profile-admin template.

This commit is contained in:
Shubham Dhama 2018-03-26 15:15:04 +05:30 committed by Tim Abbott
parent 6279a9ef09
commit 034eaf0aa1
1 changed files with 22 additions and 18 deletions

View File

@ -1,30 +1,34 @@
<div id="organization-profile" data-name="organization-profile" class="settings-section"> <div id="organization-profile" data-name="organization-profile" class="settings-section">
<form class="form-horizontal admin-realm-form org-profile-form"> <form class="form-horizontal admin-realm-form org-profile-form">
<h3>{{t "Organization profile" }}</h3>
<div class="alert" id="admin-realm-name-status"></div> <div class="alert" id="admin-realm-name-status"></div>
<div class="alert" id="admin-realm-description-status"></div> <div class="alert" id="admin-realm-description-status"></div>
<div class="alert" id="admin-realm-deactivation-status"></div> <div class="alert" id="admin-realm-deactivation-status"></div>
<div class="organization-settings-parent"> <div id="org-org-profile" class="org-subsection-parent">
<div class="input-group admin-realm"> <div class="subsection-header">
<label for="id_realm_name">{{t "Your organization's name" }}</label> <h3>{{t "Organization profile" }}</h3>
<input type="text" id="id_realm_name" name="realm_name" class="admin-realm-name"
value="{{ realm_name }}" maxlength="40" />
</div>
<div class="input-group admin-realm">
<label for="realm_description">{{t "Your organization's description" }}</label>
<textarea id="id_realm_description" name="realm_description" class="admin-realm-description"
maxlength="1000">{{ realm_description }}</textarea>
</div> </div>
{{#if is_admin }} <div class="organization-settings-parent">
<div class="input-group organization-submission"> <div class="input-group admin-realm">
<button type="submit" class="button rounded sea-green"> <label for="id_realm_name">{{t "Your organization's name" }}</label>
{{t 'Save changes' }} <input type="text" id="id_realm_name" name="realm_name" class="admin-realm-name"
</button> value="{{ realm_name }}" maxlength="40" />
</div>
<div class="input-group admin-realm">
<label for="realm_description">{{t "Your organization's description" }}</label>
<textarea id="id_realm_description" name="realm_description" class="admin-realm-description"
maxlength="1000">{{ realm_description }}</textarea>
</div>
{{#if is_admin }}
<div class="input-group organization-submission">
<button type="submit" class="button rounded sea-green">
{{t 'Save changes' }}
</button>
</div>
{{/if}}
</div> </div>
{{/if}}
</div> </div>
<h3>{{t "Organization avatar" }}</h3> <h3>{{t "Organization avatar" }}</h3>