



<div class="create_all">
    <div class="title_btn">


        <div class="grid_title">
            <div class="grid_title1 fl">
            </div>
            <div class="title_con fl">
                <h2> {{title}} </h2>
            </div>
            <div class="grid_title2 fl">
            </div>
        </div>
        <div class="btn_01" style="float:right;">
            <ul id="createConfig" style="position:absolute;z-index:2;">
                <li ng-repeat="element in createConfigElements">
                    <input type='checkbox' class='occ' id='__oc{{element.item.ID}}' ng-checked="element.select" />  {{element.item.pName}}
                </li>
            </ul>
            <input type="button" value="设置" id="createConfigButton" ng-click="createConfig();" />



            <a class="fs14" href="javascript:void(0);" id="submitEdit" ng-click="doSubmit();"> 提 交 </a>     <a class="fs14" href="javascript:void(0);" ng-click="closeDialog();" id="close"> 关 闭 </a>
        </div>

    </div>


    <div class="grid_24 clearfix">


        <div id="CreateWindow_main" name="CreateWindow_main" class="createTable clearfix" cellpadding="3" cellspacing="3">


            <dl id="crv">
                <dd ng-repeat="element in elements" class="dd_{{element.p.pTypeId}}">
                    <div ng-if="(element.p.pTypeId == 5||element.p.pTypeId == 3||element.p.pTypeId == 4) && element.p.categoryId == categoryId">
                        <span>{{element.p.pName}}: </span>
                        <input ng-blur="checkValid(element.p);" tag='edit' type='text' id='__c{{element.p.ID}}' unq="{{element.p.isUnique}}" req="{{element.p.required}}" vad='{{element.p.validator}}' name='__c{{element.p.ID}}' />
                        <i ng-show="element.p.required"> R  </i> <i ng-show="element.p.isUnique"> U </i>
                    </div>


                    <div ng-if="(element.p.pTypeId == 5||element.p.pTypeId == 3||element.p.pTypeId == 4) && element.p.categoryId != categoryId">
                        <span>{{element.p.pName}}: </span>
                        <input type="text" name="view__j{{element.p.ID}}" id='view__j{{element.p.ID}}' /><input tag="edit" type="hidden" name="__j{{element.p.ID}}" id="__j{{element.p.ID}}" />
                        <a style="color:blue" href="javascript:void(0);" ng-click="openSelect(element.p);">选择</a>
                    </div>

                    <div ng-if="element.p.pTypeId == 2 || element.p.pTypeId == 12">
                        <span>{{element.p.pName}}: </span>    <select id='__c{{element.p.ID}}' name='__c{{element.p.ID}}' tag="edit">
                            <option ng-repeat="obj in element.s" value="{{obj.value}}" > {{obj.label}} </option>
                        </select>
                    </div>

                    <div ng-if="element.p.pTypeId == 19">
                        <span>{{element.p.pName}}: </span>    <select multiselectdropdown multiple="multiple" tag="edit" type="user" id='__c{{element.p.ID}}' name='__c{{element.p.ID}}'></select>
                    </div>

                    <div ng-if="element.p.pTypeId == 20">
                        <span>{{element.p.pName}}: </span>    <select multiselectdropdown multiple="multiple" tag="edit" type="data" id='__c{{element.p.ID}}' name='__c{{element.p.ID}}' val="{{element.v}}"></select>
                    </div>



                    <div ng-if="element.p.pTypeId == 1||element.p.pTypeId == 21">
                        <span>{{element.p.pName}}: </span>    <input type="checkbox" id='__c{{element.p.ID}}' name='__c{{element.p.ID}}' tag="edit"  />
                    </div>

                    <div ng-if="element.p.pTypeId == 6">
                        <span>{{element.p.pName}}: </span>    <input datepick class="date-pick" type="text" id='__c{{element.p.ID}}' name='__c{{element.p.ID}}' tag="edit"  />
                    </div>

                    <div ng-if="element.p.pTypeId == 7">
                        <span>{{element.p.pName}}: </span>    <textarea editorc tag='edit' id='__c{{element.p.ID}}' name='__c{{element.p.ID}}'   class='jqtxt' ></textarea>
                    </div>
                    


                    <div ng-if="element.p.pTypeId == 11">
                        <span>{{element.p.pName}}: </span>    <div attachment ng-model="element" id='__img{{element.p.ID}}' class='holder' ng-model="element">
                            <ul>
                            
                            </ul>
                        </div>
                        <button ng-click="fileSelect(element.p.ID)">上传文件</button>
                        <input type="file" style="display:none"
                               id="file_{{element.p.ID}}" name='file_{{element.p.ID}}' onchange="angular.element(this).scope().fileNameChanged(this)" />
                        <input type='hidden' id='__c{{element.p.ID}}' name="__c{{element.p.ID}}" value="" tag="edit" />
                    </div>

                    <div ng-if="element.p.pTypeId == 10">
                        <span>{{element.p.pName}}: </span>    <div attachments ng-model="element" id='__img{{element.p.ID}}' class='holder w800'>
                            <ul>
                            </ul>
                        </div>
                        <button ng-click="fileSelect(element.p.ID)">上传文件</button>
                        <input type="file" style="display:none" multiple
                               id="file_{{element.p.ID}}" name='file_{{element.p.ID}}' onchange="angular.element(this).scope().fileNameChanged2(this)" />
                        
                         <input type='hidden' id='__c{{element.p.ID}}' name="__c{{element.p.ID}}" tag="edit" />
                    </div>
                </dd>


            </dl>

        </div>
    </div>
</div>
