1
0
mirror of https://github.com/nitnelave/lldap.git synced 2023-04-12 14:25:13 +00:00

Proper format

This commit is contained in:
Ivan Izaguirre 2022-07-16 00:12:30 +02:00
parent 18862010cc
commit 5de9c2e8d7

View File

@ -69,42 +69,42 @@ impl GroupDetails {
} }
fn view_details(&self, g: &Group) -> Html { fn view_details(&self, g: &Group) -> Html {
html! { html! {
<> <>
<h3>{g.display_name.to_string()}</h3> <h3>{g.display_name.to_string()}</h3>
<div class="py-3"> <div class="py-3">
<form class="form"> <form class="form">
<div class="form-group row mb-3"> <div class="form-group row mb-3">
<label for="displayName" <label for="displayName"
class="form-label col-4 col-form-label"> class="form-label col-4 col-form-label">
{"Group: "} {"Group: "}
</label> </label>
<div class="col-8"> <div class="col-8">
<span id="groupId" class="form-constrol-static">{g.display_name.to_string()}</span> <span id="groupId" class="form-constrol-static">{g.display_name.to_string()}</span>
</div>
</div> </div>
</div> <div class="form-group row mb-3">
<div class="form-group row mb-3"> <label for="creationDate"
<label for="creationDate" class="form-label col-4 col-form-label">
class="form-label col-4 col-form-label"> {"Creation date: "}
{"Creation date: "} </label>
</label> <div class="col-8">
<div class="col-8"> <span id="creationDate" class="form-constrol-static">{g.creation_date.date().naive_local()}</span>
<span id="creationDate" class="form-constrol-static">{g.creation_date.date().naive_local()}</span> </div>
</div> </div>
</div> <div class="form-group row mb-3">
<div class="form-group row mb-3"> <label for="uuid"
<label for="uuid" class="form-label col-4 col-form-label">
class="form-label col-4 col-form-label"> {"UUID: "}
{"UUID: "} </label>
</label> <div class="col-8">
<div class="col-8"> <span id="uuid" class="form-constrol-static">{g.uuid.to_string()}</span>
<span id="uuid" class="form-constrol-static">{g.uuid.to_string()}</span> </div>
</div> </div>
</div> </form>
</form> </div>
</div> </>
</> }
}
} }
fn view_user_list(&self, g: &Group) -> Html { fn view_user_list(&self, g: &Group) -> Html {