first
This commit is contained in:
109
safekiso-server/modules/base/views/main/widgets/admin-edit.ejs
Normal file
109
safekiso-server/modules/base/views/main/widgets/admin-edit.ejs
Normal file
@@ -0,0 +1,109 @@
|
||||
<% if (infos.loc === '/admin/notice/edit') { %>
|
||||
<!-- start of body -->
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<i class="icofont icofont-close-line-circled"></i>
|
||||
<strong><%=__('태그는 입력하실 수 없습니다.')%></strong>
|
||||
</div>
|
||||
|
||||
<form>
|
||||
<input type="hidden" id="notice-serial" value="<%=(hero !== null) ? hero.serial : ''%>">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><%=__('제목')%></label>
|
||||
<div class="col-sm-10">
|
||||
<input id="notice-title" type="text" class="form-control" value="<%=(hero !== null) ? hero.title : ''%>" placeholder="<%=__('공지 제목을 입력해 주세요.')%>" class="required" onchange="updateNoticePreview('preview-notice-title', this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><%=__('내용')%></label>
|
||||
<div class="col-sm-10">
|
||||
<textarea id="notice-detail" rows="5" cols="5" class="form-control" value="" placeholder="<%=__('공지 내용을 입력해 주세요. 태그는 입력하실 수 없습니다.')%>" class="required" onchange="updateNoticePreview('preview-notice-detail', this.value)"><%=(hero !== null) ? hero.detail : ''%></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<button class="btn btn-primary waves-effect waves-light" onclick="doAllThingsInSafe('<%=(hero !== null) ? 'update' : 'insert'%>', {target: 'notice'})"><%=(hero !== null) ? __('수정') : __('저장')%></button>
|
||||
|
||||
<% if (hero !== null) { %>
|
||||
<button class="btn btn-danger waves-effect waves-light" onclick="doAllThingsInSafe('delete', {target: 'notice', hero: '<%-hero.serial%>'})"><%=__('삭제')%></button>
|
||||
<% } %>
|
||||
|
||||
<button class="btn btn-info waves-effect waves-light"><%=__('미리보기')%></button>
|
||||
|
||||
|
||||
<BR><BR><BR>
|
||||
|
||||
<div id="notice-preview" style="display:'block'">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5><%=__('공지사항')%> <small><%=__('(미리 보기)')%></small></h5>
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<!-- start of body -->
|
||||
<%- include(infos.basePath + "/widgets/item-notice", { infos: infos, hero: hero ? hero : {created: '2020년 2월 29일 오후 4시 33분'} }) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end of body -->
|
||||
|
||||
|
||||
<%} else if (infos.loc === '/admin/faq/edit') {%>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<i class="icofont icofont-close-line-circled"></i>
|
||||
<strong><%=__('태그는 입력하실 수 없습니다.')%></strong>
|
||||
</div>
|
||||
|
||||
<form>
|
||||
<input type="hidden" id="faq-serial" value="<%=(hero !== null) ? hero.serial : ''%>">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><%=__('질문')%></label>
|
||||
<div class="col-sm-10">
|
||||
<input id="faq-question" type="text" class="form-control" value="<%=(hero !== null) ? hero.question : ''%>" placeholder="<%=__('질문을 입력해 주세요.')%>" class="required" onchange="updateFAQPreview('preview-faq-question', this.value)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><%=__('답변')%></label>
|
||||
<div class="col-sm-10">
|
||||
<textarea id="faq-answer" rows="5" cols="5" class="form-control" value="" placeholder="<%=__('답변 내용을 입력해 주세요. 태그는 입력하실 수 없습니다.')%>" class="required" onchange="updateFAQPreview('preview-faq-answer', this.value)"><%=(hero !== null) ? hero.answer : ''%></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<button class="btn btn-primary waves-effect waves-light" onclick="doAllThingsInSafe('<%=(hero !== null) ? 'update' : 'insert'%>', {target: 'faq'})"><%=(hero !== null) ? __('수정') : __('저장')%></button>
|
||||
|
||||
<button class="btn btn-info waves-effect waves-light"><%=__('미리보기')%></button>
|
||||
|
||||
<% if (hero !== null) { %>
|
||||
<button class="btn btn-danger waves-effect waves-light" onclick="doAllThingsInSafe('delete', {target: 'faq', hero: '<%-hero.serial%>'})"><%=__('삭제')%></button>
|
||||
<% } %>
|
||||
|
||||
|
||||
<BR><BR><BR>
|
||||
|
||||
<div id="notice-preview" style="display:'block'">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5><%=__('자주 묻는 질문과 답변')%> <small><%=__('(미리 보기)')%></small></h5>
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<!-- start of body -->
|
||||
<%- include(infos.basePath + "/widgets/item-faq", { infos: infos, hero: hero }) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end of body -->
|
||||
|
||||
|
||||
<%} else {%>
|
||||
<%} %>
|
||||
Reference in New Issue
Block a user