The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/views/admin/admin.html

86 lines
2.9 KiB

<template name="admin">
<section class="page-container page-home page-static page-settings">
<head class="fixed-title">
{{> burger}}
<h2>
<span class="room-title">{{#with group}}{{label}}{{/with}}</span>
</h2>
</head>
<div class="content">
{{#unless hasPermission 'view-privileged-setting'}}
<p>You are not authorized to view this page.</p>
{{else}}
{{#with group}}
<div class="info">
<p class="settings-description">{{description}}</p>
</div>
{{/with}}
<div class="rocket-form">
<fieldset>
{{#each sections}}
<div class="section">
{{#if section}}
<h1>{{section}}</h1>
{{/if}}
<div class="section-content">
{{#if section}}
{{#if sectionIsCustomOath section}}
<div class="section-helper">
{{#with callbackURL section}}
{{{_ "Custom_oauth_helper" .}}}
{{/with}}
</div>
{{/if}}
{{/if}}
{{#each settings}}
<div class="input-line double-col">
<label>{{label}}</label>
<div>
{{#if $eq type 'string'}}
{{#if multiline}}
<textarea name="{{_id}}" rows="4" style="height: auto">{{value}}</textarea>
{{else}}
<input type="text" name="{{_id}}" value="{{value}}" placeholder="{{placeholder}}" />
{{/if}}
{{/if}}
{{#if $eq type 'int'}}
<input type="number" name="{{_id}}" value="{{value}}" placeholder="{{placeholder}}" />
{{/if}}
{{#if $eq type 'boolean'}}
<label><input type="radio" name="{{_id}}" value="1" checked="{{$eq value true}}" /> {{_ "True"}}</label>
<label><input type="radio" name="{{_id}}" value="0" checked="{{$eq value false}}" /> {{_ "False"}}</label>
{{/if}}
{{#if $eq type 'color'}}
<input type="text" class="minicolors" name="{{_id}}" value="{{value}}" />
{{/if}}
{{#if description}}
<div>
<small class="settings-description">{{{description}}}</small>
</div>
{{/if}}
</div>
</div>
{{/each}}
{{#if section}}
{{#if sectionIsCustomOath section}}
<div class="submit">
<button class="button delete remove-custom-oauth"><span>{{_ "Remove_custom_oauth"}}</span></button>
</div>
{{/if}}
{{/if}}
</div>
</div>
{{/each}}
</fieldset>
<div class="submit">
{{#if $eq group._id 'Accounts'}}
<button class="button secondary add-custom-oauth"><span>{{_ "Add_custom_oauth"}}</span></button>
{{/if}}
<button class="button save"><i class="icon-send"></i><span>{{_ "Save_changes"}}</span></button>
</div>
</div>
{{/unless}}
</div>
</section>
</template>