myMedisys/tomcatfiles/mymedisys-frontend/WEB-INF/classes/templates/page/mc/profile-update.html

254 lines
9.5 KiB
HTML
Raw Normal View History

2023-09-06 05:56:42 +05:30
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
layout:decorate="~{layouts/blank-layout}">
<head>
<title th:text="${pageTitle}">Profile Update</title>
</head>
<div layout:fragment="page_subtitle">
<h1 class="title">Profile Update</h1>
</div>
<body layout:fragment="page_content" id="page_profileUpdate">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="card">
<div class="card-header card-header-danger card-header-icon">
<div class="card-icon d-flex">
<h4 class="card-title m-1">Medical Center Update</h4>
<button class="btn btn-sm btn-primary btn-pill ml-auto"
sec:authorize="hasAnyAuthority('SYSTEM','MC_ADMIN')"
th:onclick="|window.location.href='@{#{'/manageUsers/doctorProfiles'}}'|">
<i class="material-icons">group_add</i> Add/Remove Doctors
</button>
</div>
</div>
<div class="card-body">
<form id="mcProfileUpdate" th:action="@{'profileUpdate'}" th:object="${form}" th:method="POST" autocomplete="off" enctype="multipart/form-data">
<input type="hidden" th:field="*{mcProfId}" />
<input type="hidden" th:field="*{mcRegNo}" />
<input type="hidden" th:field="*{mcName}" />
<input type="hidden" th:field="*{mcOwners[0].mcOwnerId}"/>
<input type="hidden" th:field="*{mcOwners[1].mcOwnerId}"/>
<div class="cd-section" id="basicInfo">
<th:block th:utext="#{title.mc.dtl}"></th:block>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<label th:text="#{lbl.mc.name}"></label>
<h6 th:text="${form?.mcName}"></h6>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<label th:text="#{'Registration No.'}"></label>
<h6 th:text="${form?.mcRegNo}"></h6>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.employer.email}"></label> <input type="email"
maxlength="100" class="form-control" required="required"
th:field="*{email}" />
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.contact}"></label> <input type="text"
class="form-control input-contact limit-number" maxlength="50"
required="required" th:field="*{contactNo}"
data-init-country="BD" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.mc.adr}"></label>
<textarea class="form-control" required="required" maxlength="100"
th:field="*{addr1}"></textarea>
</div>
</div>
</div>
<div class="bd-callout bd-callout-success">
<h3 class="mt-0">Opening Hours </h3>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.week.days} + ' '+ #{lbl.from}"></label>
<input th:field="*{weekDaysFrom}" class="form-control custom-select"
required="required" type="time">
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.week.days}+ ' '+ #{lbl.to}"></label>
<input th:field="*{weekDaysTo}" class="form-control custom-select"
required="required" type="time">
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.week.end}+' '+ #{lbl.from}"></label>
<input th:field="*{weekEndFrom}" class="form-control custom-select"
required="required" type="time">
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.week.end}+' '+ #{lbl.to}"></label>
<input th:field="*{weekEndTo}" class="form-control custom-select"
required="required" type="time">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.mc.country}"></label> <select
th:field="*{country.cntryCode}" class="form-control"
required="required">
<option value="" />
<option th:each="cntry : ${@staticreference.allCountry()}"
th:value="${cntry.cntryCode}" th:text="${cntry.cntryDesc}" />
</select>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6" th:each="doc, row : ${form.regFile}">
<extra:file extra:document="${doc.fileType}" th:field="*{regFile[__${row.index}__]}"></extra:file>
</div>
<div class="col-sm-12 col-md-6 col-lg-6"
th:each="doc, row : ${form.mcFile}">
<extra:file extra:document="${doc.fileType}"
th:field="*{mcFile[__${row.index}__]}"></extra:file>
</div>
</div>
</div>
<div class="cd-section" id="ownerDetails">
<th:block th:utext="#{title.owner.dtl}"></th:block>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.name}"></label>
<input th:field="*{mcOwners[0].fullname}" maxlength="255"
style="text-transform: uppercase;" type="text"
class="form-control input-letter" required="required" />
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.design}"></label>
<input th:field="*{mcOwners[0].designation}" type="text"
maxlength="100" class="form-control" required="required" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.email}"></label>
<input th:field="*{mcOwners[0].email}" type="email"
maxlength="100" class="form-control" required="required" />
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.contact}"></label> <input type="text"
class="form-control input-contact limit-number" maxlength="50"
required="required" th:field="*{mcOwners[0].contactNo}"
data-init-country="BD" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6"
th:each="doc, row : ${form.mcOwnerFile}">
<extra:file extra:document="${doc.fileType}"
th:field="*{mcOwnerFile[__${row.index}__]}"></extra:file>
</div>
</div>
</div>
<th:block th:utext="#{title.pic.dtl}"></th:block>
<div class="cd-section" id="picDetails">
<div id="picOwner">
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.name}"></label>
<input th:field="*{mcOwners[1].fullname}" maxlength="255"
style="text-transform: uppercase;" type="text"
class="form-control input-letter" required="required" />
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.design}"></label>
<input th:field="*{mcOwners[1].designation}" type="text"
maxlength="100" class="form-control" required="required" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating" th:text="#{lbl.email}"></label>
<input th:field="*{mcOwners[1].email}" type="email"
maxlength="100" class="form-control" required="required" />
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<div class="form-group">
<label class="required bmd-label-floating"
th:text="#{lbl.contact}"></label> <input type="text"
class="form-control input-contact limit-number" maxlength="50"
required="required" th:field="*{mcOwners[1].contactNo}"
data-init-country="BD" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6"
th:each="doc, row : ${form.mcPicFile}">
<extra:file extra:document="${doc.fileType}"
th:field="*{mcPicFile[__${row.index}__]}"></extra:file>
</div>
</div>
</div>
</div>
<div class="row pb-3 pr-3 align-items-center">
<div class="ml-auto">
<a class="btn waves-effect waves-light btn-secondary" href="#" th:href="@{#{url.worker.appointment.list}}"><i class="material-icons">keyboard_backspace</i>
Back to Home Page</a>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
<nav id="cd-vertical-nav">
<ul>
<li><a href="#basicInfo" data-number="1"> <span
class="cd-dot"></span> <span class="cd-label">
<li><a href="#ownerDetails" data-number="2"> <span
class="cd-dot"></span> <span class="cd-label">Medical
Center Details</span>
</a></li>
</span>
</a></li>
<li><a href="#ownerDetails" data-number="2"> <span
class="cd-dot"></span> <span class="cd-label">Owner Details</span>
</a></li>
<li><a href="#picDetails" data-number="2"> <span
class="cd-dot"></span> <span class="cd-label">PIC Details</span>
</a></li>
</ul>
</nav>
</html>