diff --git a/lib/nailinda_web/templates/doctor/edit.html.eex b/lib/nailinda_web/templates/doctor/edit.html.eex index d3e631a..461669f 100644 --- a/lib/nailinda_web/templates/doctor/edit.html.eex +++ b/lib/nailinda_web/templates/doctor/edit.html.eex @@ -1,3 +1,4 @@ -

Edit Doctor's Details

-<%= render "form.html", Map.put(assigns, :action,Routes.doctor_path(@conn, :update, @doctor)) %> +

Edit Doctor's Details

+ +<%= render "form.html", Map.put(assigns, :action,Routes.doctor_path(@conn, :update, @doctor)) %> diff --git a/lib/nailinda_web/templates/doctor/form.html.eex b/lib/nailinda_web/templates/doctor/form.html.eex index ead4cdf..d2f49e7 100644 --- a/lib/nailinda_web/templates/doctor/form.html.eex +++ b/lib/nailinda_web/templates/doctor/form.html.eex @@ -1,44 +1,95 @@ +
<%= form_for @changeset, @action, fn f -> %> <%= if @changeset.action do %>
Creation was not successful please try again
<% end %> -
-<%= text_input f, :first_name, placeholder: "First Name" %> +
+
+
+ +
+ <%= text_input f, :first_name, placeholder: "First Name" %> <%= error_tag f, :first_name %>
-
+
+
+ +
+
+ +
<%= text_input f, :middle_name, placeholder: "Middle Name" %> <%= error_tag f, :middle_name %>
-
+
+
+ +
+
+ +
<%= text_input f, :surname, placeholder: "Surname" %> <%= error_tag f, :suname %>
-
+
+
+
+ + +
+
+
+ +
<%= text_input f, :id_number, placeholder: "ID Number" %> <%= error_tag f, :id_number %>
-
+
+
+ +
+
+ +
<%= text_input f, :department, placeholder: "Department" %> <%= error_tag f, :department %>
-
+
+
+ +
+
+ +
<%= text_input f, :speciality, placeholder: "Speciality" %> <%= error_tag f, :speciality%>
-
+
+
+
+ +
+
+
+ +
<%= text_input f, :email, placeholder: "Email" %> <%= error_tag f, :email %>
-
+
+
+ +
+
+ +
<%= text_input f, :location, placeholder: "Location" %> <%= error_tag f, :location %>
-<%= submit "submit" %> +
+
+
+<%= submit "submit", class: "button is-success" %> <% end %> - - - - \ No newline at end of file