Bläddra i källkod

Add location to work

theenglishway (time) 2 år sedan
förälder
incheckning
60237105cf
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      lib/views/work.ex

+ 2 - 1
lib/views/work.ex

@@ -6,6 +6,7 @@ defmodule CvGenView.Work do
   attr(:start_date, :any, required: true)
   attr(:end_date, :any, default: nil)
   attr(:summary, :string, required: true)
+  attr(:location, :string, required: true)
   attr(:highlights, :list, required: true)
 
   def work(assigns) do
@@ -23,7 +24,7 @@ defmodule CvGenView.Work do
           <dd><.date class="end_date" date={@end_date} /></dd>
         <% end %>
         <dt class="work_location"></dt>
-        <dd>Paris</dd>
+        <dd><%= @location %></dd>
       </dl>
 
       <p class="summary" lang="en"><%= @summary %></p>