Skip to content
Snippets Groups Projects
Commit cc729388 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Replaced /settings for /admin

parent 6dc4ce7f
No related branches found
No related tags found
No related merge requests found
......@@ -39,74 +39,6 @@
{{/if}}
{{/each}}
</fieldset>
{{!-- <fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Input Field</label>
<div>
<input type="text" name="input-name" />
</div>
</div>
<div class="input-line double-col">
<label>Select Field</label>
<div>
<select name="select">
<option value="1">Option A</option>
<option value="1">Option B</option>
<option value="1">Option C</option>
<option value="1">Option D</option>
<option value="1">Option E</option>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Radio field</label>
<div>
<label><input type="radio" name="pandora" value="1" /> Calazar</label>
<label><input type="radio" name="pandora" value="2" /> Genoveve</label>
</div>
</div>
<div class="input-line double-col">
<label>Checkbox field</label>
<div>
<label><input type="checkbox" name="pandora" value="1" /> Calazar</label>
<label><input type="checkbox" name="pandora" value="2" /> Genoveve</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Input Field</label>
<div>
<input type="text" name="input-name" />
</div>
</div>
<div class="input-line double-col">
<label>Select Field</label>
<div>
<select name="select">
<option value="1">Option A</option>
<option value="1">Option B</option>
<option value="1">Option C</option>
<option value="1">Option D</option>
<option value="1">Option E</option>
</select>
</div>
</div>
</fieldset> --}}
<div class="submit">
<button class="button"><i class="icon-send"></i><span>{{_ "Save_changes"}}</span></button>
</div>
......@@ -114,90 +46,4 @@
{{/unless}}
</div>
</section>
{{!-- <section class="page-container page-home page-static">
<header class="fixed-title">
{{> burger}}
<h2>
<span class="room-title">{{_ "App_Settings"}}</span>
</h2>
</header>
<div class="content">
<div class="info">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
<div class="rocket-form">
<fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Input Field</label>
<div>
<input type="text" name="input-name" />
</div>
</div>
<div class="input-line double-col">
<label>Select Field</label>
<div>
<select name="select">
<option value="1">Option A</option>
<option value="1">Option B</option>
<option value="1">Option C</option>
<option value="1">Option D</option>
<option value="1">Option E</option>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Radio field</label>
<div>
<label><input type="radio" name="pandora" value="1" /> Calazar</label>
<label><input type="radio" name="pandora" value="2" /> Genoveve</label>
</div>
</div>
<div class="input-line double-col">
<label>Checkbox field</label>
<div>
<label><input type="checkbox" name="pandora" value="1" /> Calazar</label>
<label><input type="checkbox" name="pandora" value="2" /> Genoveve</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<h3>This is another section</h3>
<p>This is a configuration text. With configuration info</p>
</legend>
<div class="input-line double-col">
<label>Input Field</label>
<div>
<input type="text" name="input-name" />
</div>
</div>
<div class="input-line double-col">
<label>Select Field</label>
<div>
<select name="select">
<option value="1">Option A</option>
<option value="1">Option B</option>
<option value="1">Option C</option>
<option value="1">Option D</option>
<option value="1">Option E</option>
</select>
</div>
</div>
</fieldset>
<div class="submit">
<button class="button"><i class="icon-send"></i><span>Save changes</span></button>
</div>
</div>
</div>
</section> --}}
</template>
\ No newline at end of file
Template.settingsUserChannels.helpers
Template.adminUserChannels.helpers
type: ->
return if @t is 'd' then 'at' else if @t is 'p' then 'lock' else 'hash'
\ No newline at end of file
<template name="settingsUserChannels">
<template name="adminUserChannels">
<div class="user-info-channel">
<h3><a href="{{pathFor 'room' _id=rid}}"><i class="icon-{{type}}"></i> {{name}}</a></h3>
</div>
......
Template.settingsUserInfo.helpers
Template.adminUserInfo.helpers
name: ->
return if @name then @name else TAPi18next.t 'project:Unnamed'
email: ->
......@@ -19,7 +19,7 @@ Template.settingsUserInfo.helpers
return "UTC #{@utcOffset}"
Template.settingsUserInfo.events
Template.adminUserInfo.events
'click .deactivate': ->
Meteor.call 'setUserActiveStatus', Template.currentData()._id, false, (error, result) ->
if result
......@@ -57,3 +57,4 @@ Template.settingsUserInfo.events
Meteor.call 'deleteUser', _id, (error, result) ->
if error
toastr.error error.reason
<template name="settingsUserInfo">
<template name="adminUserInfo">
<div class="about clearfix">
<div class="thumb">
{{> avatar username=username}}
......
......@@ -46,19 +46,21 @@
<div class="control">
<button class="more"><span class="arrow {{arrowPosition}}"></span></button>
<div class="user-info-tabs">
<a href="#settingsUserInfo" class="active"><i class="icon-at"></i></a>
<a href="#settingsUserChannels"><i class="icon-hash"></i></a>
<a href="#adminUserInfo" class="active"><i class="icon-at"></i></a>
<a href="#adminUserChannels"><i class="icon-hash"></i></a>
</div>
</div>
{{#if flexOpened}}
<div class="content">
<div class="user-view">
<div id="settingsUserInfo" class="user-info-content">
{{> settingsUserInfo userData}}
<div id="adminUserInfo" class="user-info-content">
{{#if userData}}
{{> adminUserInfo userData}}
{{/if}}
</div>
<div id="settingsUserChannels" class="user-info-content channels" style="display: none">
<div id="adminUserChannels" class="user-info-content channels" style="display: none">
{{#each userChannels}}
{{> settingsUserChannels}}
{{> adminUserChannels}}
{{/each}}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment