Skip to content

Instantly share code, notes, and snippets.

@ramrrr
Created July 26, 2013 13:08
Show Gist options
  • Select an option

  • Save ramrrr/6088719 to your computer and use it in GitHub Desktop.

Select an option

Save ramrrr/6088719 to your computer and use it in GitHub Desktop.
changes in hbs
<div class="container-fluid left-padded">
<div class="container-fluid">
<span class="heimdall-tip"><img alt="" src="/static/img/icon_hint_text.png"/>
{{t composer.recipient.hint}}
</span>
<h1> {{t composer.event.summary}}</h1>
<div class="row-fluid form-inline">
<div class="span2"> <label > Alert Name </label> </div>
<div class="span2"><label > Recipients</label> </div>
<div class="span8"><label > Actions Available</label> </div>
</div>
{{#each alert in model.alerts}}
<div class="row-fluid form-inline">
<div class="span2">
<h2><a {{action toggleAlerts}}><i {{bindAttr
class="controller.alertsExpanded:icon-minus-sign:icon-plus-sign"}}></i> {{alert.name}}</a> </h2>
</div>
<div class="span2"><label class="">{{alert.totalCount}}</label></div>
<div class="span8">
<button class="icon-pencil" {{action edit alert}}></button>
<img src="/static/img/icon_TestSend.png">
<button class="icon-remove" {{action removeSelectedAlert alert}}></button>
</div>
</div>
<div {{bindAttr class=":send-element controller.alertsExpanded::collapse controller.alertsExpanded:in:"}}>
<div class="control-group">
<label class="control-label">Schedule</label>
<div class="controls">
{{view UI.DatePickerView valueBinding="alert.scheduledDate"}}
<div class="input-append bootstrap-timepicker-component">
{{view UI.TimePicker class="timepicker-default input-small" timeBinding="alert.scheduledDate"}}
<span class="add-on"><i class="icon-time"></i></span>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Channels(count):</label>
<div class="controls">
{{# each channel in alert.channels}}
{{view App.ChannelIconView channelBinding=channel}}
{{/each}}
</div>
</div>
</div>
</div>
{{/each}}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment