|
@@ -1,105 +1,107 @@
|
|
|
<div class="addHospital-w">
|
|
|
<div class="container">
|
|
|
-
|
|
|
+
|
|
|
<div class="row" style="margin-bottom: 30px;">
|
|
|
<div class="col-12">
|
|
|
<ul class="list-unstyled titileLi-w">
|
|
|
- <li class="headingText-w">خدمه إداره المحتوي / </li>
|
|
|
- <li class="headingText-w" style="cursor:pointer" (click)="authSer.perviousLocation()"> الاخبار / </li>
|
|
|
+ <li class="headingText-w">خدمه إداره المحتوي > </li>
|
|
|
+ <li class="headingText-w" style="cursor:pointer" (click)="authSer.perviousLocation()"> الاخبار > </li>
|
|
|
<li class="headingText-w activeLi-w" style="margin-right:5px"> {{typeLink}} </li>
|
|
|
</ul>
|
|
|
- <hr class="hr">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="containerContent-w">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-12">
|
|
|
|
|
|
- <div class="row">
|
|
|
- <div class="col-12">
|
|
|
-
|
|
|
- <form (ngSubmit)="onSubmitted()" #f="ngForm">
|
|
|
- <div class="row">
|
|
|
- <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:30px">
|
|
|
- <div class="form-group text-center imgContainer">
|
|
|
- <img [src]="urlImg" class="imgProfile" height="200">
|
|
|
- <input type="file" name="file" id="file" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event)" (change)="getUrl($event)" [(fileModel)]="files" />
|
|
|
- <label for="file" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
|
+ <form (ngSubmit)="onSubmitted()" #f="ngForm">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:30px">
|
|
|
+ <div class="form-group text-center imgContainer">
|
|
|
+ <img [src]="urlImg" class="imgProfile" height="200">
|
|
|
+ <input type="file" name="file" id="file" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event)" (change)="getUrl($event)" [(fileModel)]="files" />
|
|
|
+ <label for="file" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <span *ngIf="checkValidImg" style="color: red; position: absolute; right:0; bottom:0">must be in 'png' format</span>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="title" style="float: right; margin-right: 5px">العنوان بالغه العربيه <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" class="form-control" placeholder="العنوان باللغه العربيه" id="title" name="title" ngModel [ngModel]="new.title" #name="ngModel" required/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="title_en" style="float: right; margin-right: 5px">العنوان باللغه الانجليزيه <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" class="form-control" id="title_en" placeholder="العنوان باللغه الانجليزيه" name="title_en" ngModel [ngModel]="new.title_en" #name="ngModel" required/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="ranking" style="float: right; margin-right: 5px">الترتيب <span class="spanReqired-w">*</span></label>
|
|
|
- <select class="form-control" name="ranking" [ngModel]="new.ranking" id="ranking" required>
|
|
|
- <option value="10000">المزيد</option>
|
|
|
- <option value="1">1</option>
|
|
|
- <option value="2">2</option>
|
|
|
- <option value="3">3</option>
|
|
|
- <option value="4">4</option>
|
|
|
- <option value="5">5</option>
|
|
|
- <option value="6">6</option>
|
|
|
- </select>
|
|
|
- <!-- <span *ngIf="!name.valid && name.touched"></span> -->
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="title" style="float: right; margin-right: 5px">العنوان بالغه العربيه <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" class="form-control" placeholder="العنوان باللغه العربيه" id="title" name="title" ngModel [ngModel]="new.title" #name="ngModel" required/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="col-12 col-sm-12 col-md-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="display_location" style="float: right; margin-right: 5px"> الصفحه <span class="spanReqired-w">*</span></label>
|
|
|
- <select class="form-control" name="display_location" [ngModel]="new.display_location" id="display_location" required>
|
|
|
- <option value="internal">داخليه</option>
|
|
|
- <option value="external">خارجيه</option>
|
|
|
- <option value="both">كلاهما</option>
|
|
|
- </select>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="title_en" style="float: right; margin-right: 5px">العنوان باللغه الانجليزيه <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" class="form-control" id="title_en" placeholder="العنوان باللغه الانجليزيه" name="title_en" ngModel [ngModel]="new.title_en" #name="ngModel" required/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="col-12 col-sm-12 col-md-4">
|
|
|
- <label for="status" style="float: right; margin-right: 5px">الحاله <span class="spanReqired-w">*</span></label>
|
|
|
- <select class="form-control" name="status" [ngModel]="new.status" id="status" required>
|
|
|
- <option value="1">فعال</option>
|
|
|
- <option value="0">غير فعال</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="col-12 col-sm-12 col-md-12">
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
<div class="form-group">
|
|
|
- <label for="description" style="float: right;margin-right: 5px"> الوصف باللغه العربيه <span class="spanReqired-w">*</span></label>
|
|
|
- <!-- <textarea cols="3" class="form-control" id="description" name="description" [ngModel]="new.description" required></textarea> -->
|
|
|
- <quill-editor id="description" name="description" [ngModel]="new.description" required>
|
|
|
- </quill-editor>
|
|
|
+ <label for="ranking" style="float: right; margin-right: 5px">الترتيب <span class="spanReqired-w">*</span></label>
|
|
|
+ <select class="form-control" name="ranking" [ngModel]="new.ranking" id="ranking" required>
|
|
|
+ <option value="1">1</option>
|
|
|
+ <option value="2">2</option>
|
|
|
+ <option value="3">3</option>
|
|
|
+ <option value="4">4</option>
|
|
|
+ <option value="5">5</option>
|
|
|
+ <option value="6">6</option>
|
|
|
+ <option value="10000">المزيد</option>
|
|
|
+ </select>
|
|
|
+ <!-- <span *ngIf="!name.valid && name.touched"></span> -->
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-12">
|
|
|
+ <div class="col-12 col-sm-12 col-md-4">
|
|
|
<div class="form-group">
|
|
|
- <label for="description_en" style="float: right;margin-right: 5px"> الوصف باللغه الانجليزيه <span class="spanReqired-w">*</span></label>
|
|
|
- <quill-editor id="description_en" name="description_en" [ngModel]="new.description_en" required>
|
|
|
- <!-- <textarea cols="3" class="form-control" id="description_en" name="description_en" [ngModel]="new.description_en" required></textarea> -->
|
|
|
- </quill-editor>
|
|
|
+ <label for="display_location" style="float: right; margin-right: 5px"> الصفحه <span class="spanReqired-w">*</span></label>
|
|
|
+ <select class="form-control" name="display_location" [ngModel]="new.display_location" id="display_location" required>
|
|
|
+ <option value="internal">داخليه</option>
|
|
|
+ <option value="external">خارجيه</option>
|
|
|
+ <option value="both">كلاهما</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-12 col-sm-12 col-md-4">
|
|
|
+ <label for="status" style="float: right; margin-right: 5px">الحاله <span class="spanReqired-w">*</span></label>
|
|
|
+ <select class="form-control" name="status" [ngModel]="new.status" id="status" required>
|
|
|
+ <option value="1">فعال</option>
|
|
|
+ <option value="0">غير فعال</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-12 col-sm-12 col-md-12">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="description" style="float: right;margin-right: 5px"> الوصف باللغه العربيه <span class="spanReqired-w">*</span></label>
|
|
|
+ <!-- <textarea cols="3" class="form-control" id="description" name="description" [ngModel]="new.description" required></textarea> -->
|
|
|
+ <quill-editor id="description" name="description" [ngModel]="new.description" required>
|
|
|
+ </quill-editor>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-12 col-sm-12 col-md-12">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="description_en" style="float: right;margin-right: 5px"> الوصف باللغه الانجليزيه <span class="spanReqired-w">*</span></label>
|
|
|
+ <quill-editor id="description_en" name="description_en" [ngModel]="new.description_en" required>
|
|
|
+ <!-- <textarea cols="3" class="form-control" id="description_en" name="description_en" [ngModel]="new.description_en" required></textarea> -->
|
|
|
+ </quill-editor>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
- <button type="submit" class="btn btn-success rightW" [disabled]="!f.valid">حفظ</button>
|
|
|
+ <button type="submit" class="btn btn-success rightW" [disabled]="!f.valid">حفظ</button>
|
|
|
|
|
|
- </form>
|
|
|
+ </form>
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|