<ion-view hide-back-button="true">
    <ion-nav-title>{{isNew?'发布通知':'编辑通知'}}</ion-nav-title>
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click='ok("notice");'>完成</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="left">
        <button class="button button-clear" ng-click='cancel("notice");'>取消</button>
    </ion-nav-buttons>
    <ion-content>
        <div class="list notice-input">
            <label class="item item-input" ng-click="toselect();">
                <span class="input-label">发送：</span>
                <span for="" class='notice-resvicename item-text-wrap'>{{usernames}}</span>
            </label>
            <div class="row input-btn-row">
                <div class="col col-67">
                    <label class="item item-input" ng-click="test($event)">
                        <span class="input-label">标题：</span>
                        <input type="text" placeholder="输入标题" ng-model="noticedata.title" focus-me=true>
                    </label>
                </div>
                <div class="col col-35">
                    <button class="button button-energized" ng-class="{true:'',false:'button-outline'}[noticedata.setbtnstyle.vote]" ng-click="set_voteback('vote',$event)">
                        投票
                    </button>
                </div>
                <div class="col col-35">
                    <button class="button button-energized" ng-class="{true:'',false:'button-outline'}[noticedata.setbtnstyle.back]" ng-click="set_voteback('back',$event)">
                        反馈
                    </button>
                </div>
            </div>
            <div class="comment-box notice-content">
                <div ng-if="noticedata.address!=null" class="div-address"><i class="ion-ios-location"></i>{{noticedata.address}}</div>
                <textarea placeholder="输入内容..." ng-model="noticedata.content"></textarea>
                <div class="row row-wrap">
                    <div  ng-repeat="image in noticedata.noticefiles">
                        <img ng-src={{image.file_thumbnail_path}} ng-click="shouBigImage(image.file_full_path)" class="img-popver-pad"/>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
    <div class="bar bar-footer postnotice-footer">
        <div class="notice-first-ion" ng-click="Camera();"><i class="ion-android-camera" style=""></i></div>
        <div class="notice-right-ion" ng-click="imagePicker();"><i class="ion-android-image"></i></div>
        <div class="notice-right-ion" ng-click="getaddress();"><i class="ion-ios-location"></i></div>
    </div>
    <div ng-show="commons.bigImage" class="popover-backdrop1">
        <img class="fullscreen-image" ng-click="hideBigImage()" ng-src="{{Url}}" ng-pinch-zoom/>
        <i class="ion-ios-trash-outline" ng-click="deleteimage();"></i>
    </div>
</ion-view>
