|
|
|
@ -58,17 +58,24 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':noticeForm.intro.$invalid && noticeForm.intro.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="title-input">Intro</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="notice.title" type="textarea"
|
|
|
|
|
id="intro-input" name="intro" maxlength="400">
|
|
|
|
|
<div ng-messages="noticeForm.intro.$error"
|
|
|
|
|
ng-if="noticeForm.intro.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less Than 400
|
|
|
|
|
Characters(including symbols and spaces)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':noticeForm.content.$invalid && noticeForm.content.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2"></label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<ueditor ng-model="notice.content" ue-height="400"></ueditor>
|
|
|
|
|
<!--<textarea class="form-control" required ng-model="notice.content"-->
|
|
|
|
|
<!--name="content" id="desc-input"></textarea>-->
|
|
|
|
|
<!--<div ng-messages="noticeForm.content.$error"-->
|
|
|
|
|
<!--ng-if="noticeForm.content.$dirty">-->
|
|
|
|
|
<!--<p class="small text-danger" ng-message="required">Required Field</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -80,27 +87,33 @@
|
|
|
|
|
is-open="dateEnd.open" ng-click="dateEnd.open=true"
|
|
|
|
|
datepicker-options="{minDate:today}">
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="notice.notice_id" class="col-sm-2" style="display: inline-block">
|
|
|
|
|
<input type="checkbox"
|
|
|
|
|
ng-model="notice.is_tomail"> Send Emails
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="notice.notice_id && notice.is_tomail" class="col-sm-2" style="display: inline-block">
|
|
|
|
|
<input type="checkbox"
|
|
|
|
|
ng-model="notice.is_tomail_cc_stockholder"> CC to stockholders
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="notice.notice_id" class="col-sm-2" style="display: inline-block">
|
|
|
|
|
<input type="checkbox"
|
|
|
|
|
ng-model="notice.is_to_app"> Send App
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div ng-if="notice.notice_id" class="col-sm-2" style="display: inline-block">-->
|
|
|
|
|
<!--<input type="checkbox"-->
|
|
|
|
|
<!--ng-model="notice.is_tomail"> Send Emails-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div ng-if="notice.notice_id && notice.is_tomail" class="col-sm-2" style="display: inline-block">-->
|
|
|
|
|
<!--<input type="checkbox"-->
|
|
|
|
|
<!--ng-model="notice.is_tomail_cc_stockholder"> CC to stockholders-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div ng-if="notice.notice_id" class="col-sm-2" style="display: inline-block">-->
|
|
|
|
|
<!--<input type="checkbox"-->
|
|
|
|
|
<!--ng-model="notice.is_to_app"> Send App-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-if="notice.notice_id && notice.is_tomail||notice.notice_id && notice.is_to_app">
|
|
|
|
|
<label class="control-label col-sm-2" for="clients-input">Send Partners</label>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="merchants-type">Merchants</label>
|
|
|
|
|
<div class="col-sm-8" style="display: inline-block" ng-if="notice.status=='0'|| notice.status==null">
|
|
|
|
|
<textarea class="form-control col-sm-10" ng-model="notice.send_clients"
|
|
|
|
|
name="clients" id="clients-input"></textarea>
|
|
|
|
|
<a class="btn btn-success" role="button" ng-click="selectClients(notice)"><i
|
|
|
|
|
class="fa fa-search"></i></a>
|
|
|
|
|
<select class="form-control" ng-model="notice.merchants_type" id="merchants-type">
|
|
|
|
|
<option value="0">ALL</option>
|
|
|
|
|
<option value="1">Custom</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8" style="display: inline-block" ng-if="notice.merchants==1">
|
|
|
|
|
<input class="form-control" ng-model="notice.send_clients" type="textarea"
|
|
|
|
|
id="send-clients-input" name="send_clients">
|
|
|
|
|
</div>
|
|
|
|
|
<p class="small text-danger">以PartnerCode1,PartnerCode2..的形式填写</p>
|
|
|
|
|
<div class="col-sm-8" ng-if="notice.status=='1'">
|
|
|
|
|
<p class="form-control-static" ng-bind="notice.send_clients"></p>
|
|
|
|
|
</div>
|
|
|
|
@ -110,9 +123,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group margin-bottom margin-top">
|
|
|
|
|
<button class="btn btn-success" type="button" ng-click="save(noticeForm)">Save</button>
|
|
|
|
|
<button ng-if="notice.status=='0'|| notice.status==null" class="btn btn-danger" type="button"
|
|
|
|
|
ng-click="notice.status='1';save(noticeForm)">Send
|
|
|
|
|
</button>
|
|
|
|
|
<!--<button ng-if="notice.status=='0'|| notice.status==null" class="btn btn-danger" type="button"-->
|
|
|
|
|
<!--ng-click="notice.status='1';save(noticeForm)">Send-->
|
|
|
|
|
<!--</button>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|