|
|
|
|
@ -6,16 +6,18 @@ |
|
|
|
|
</div> |
|
|
|
|
<form> |
|
|
|
|
<ul class="list clearfix"> |
|
|
|
|
<li> |
|
|
|
|
<label>{{_ "Name"}}</label> |
|
|
|
|
<div> |
|
|
|
|
{{#if editing 'roomName'}} |
|
|
|
|
<input type="text" name="roomName" value="{{roomName}}" class="editing" /> <button type="button" class="button secondary cancel">{{_ "Cancel"}}</button> <button type="button" class="button primary save">{{_ "Save"}}</button> |
|
|
|
|
{{else}} |
|
|
|
|
<span>{{roomName}}{{#if canEdit}} <i class="octicon octicon-pencil" data-edit="roomName"></i>{{/if}}</span> |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
{{#if notDirect}} |
|
|
|
|
<li> |
|
|
|
|
<label>{{_ "Name"}}</label> |
|
|
|
|
<div> |
|
|
|
|
{{#if editing 'roomName'}} |
|
|
|
|
<input type="text" name="roomName" value="{{roomName}}" class="editing" /> <button type="button" class="button secondary cancel">{{_ "Cancel"}}</button> <button type="button" class="button primary save">{{_ "Save"}}</button> |
|
|
|
|
{{else}} |
|
|
|
|
<span>{{roomName}}{{#if canEdit}} <i class="octicon octicon-pencil" data-edit="roomName"></i>{{/if}}</span> |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
{{/if}} |
|
|
|
|
<li> |
|
|
|
|
<label>{{_ "Topic"}}</label> |
|
|
|
|
<div> |
|
|
|
|
@ -26,19 +28,21 @@ |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>{{_ "Type"}}</label> |
|
|
|
|
<div> |
|
|
|
|
{{#if editing 'roomType'}} |
|
|
|
|
<label><input type="radio" name="roomType" class="editing" value="c" checked="{{$eq roomType 'c'}}" /> {{_ "Channel"}}</label> |
|
|
|
|
<label><input type="radio" name="roomType" value="p" checked="{{$eq roomType 'p'}}" /> {{_ "Private_Group"}}</label> |
|
|
|
|
<button type="button" class="button secondary cancel">{{_ "Cancel"}}</button> |
|
|
|
|
<button type="button" class="button primary save">{{_ "Save"}}</button> |
|
|
|
|
{{else}} |
|
|
|
|
<span>{{roomTypeDescription}}{{#if canEdit}} <i class="octicon octicon-pencil" data-edit="roomType"></i>{{/if}}</span> |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
{{#if notDirect}} |
|
|
|
|
<li> |
|
|
|
|
<label>{{_ "Type"}}</label> |
|
|
|
|
<div> |
|
|
|
|
{{#if editing 'roomType'}} |
|
|
|
|
<label><input type="radio" name="roomType" class="editing" value="c" checked="{{$eq roomType 'c'}}" /> {{_ "Channel"}}</label> |
|
|
|
|
<label><input type="radio" name="roomType" value="p" checked="{{$eq roomType 'p'}}" /> {{_ "Private_Group"}}</label> |
|
|
|
|
<button type="button" class="button secondary cancel">{{_ "Cancel"}}</button> |
|
|
|
|
<button type="button" class="button primary save">{{_ "Save"}}</button> |
|
|
|
|
{{else}} |
|
|
|
|
<span>{{roomTypeDescription}}{{#if canEdit}} <i class="octicon octicon-pencil" data-edit="roomType"></i>{{/if}}</span> |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
{{/if}} |
|
|
|
|
{{#each channelSettings}} |
|
|
|
|
{{> Template.dynamic template=template data=data}} |
|
|
|
|
{{/each}} |
|
|
|
|
|