Skip to content

Commit

Permalink
Add more demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
ciukstar committed Oct 12, 2023
1 parent 059a7b6 commit ef1d60b
Show file tree
Hide file tree
Showing 32 changed files with 501 additions and 114 deletions.
2 changes: 2 additions & 0 deletions messages/en.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
OnlyEmployeesMaySeeRequests: Only employees may see requests
YouAreNotAnEmployeeOfFacility: You are not an employee of this facility
InvalidBusinessTimeZone: Invalid business time zone
InvalidBusinessTimeZoneOffset: Invalid business time zone offset
InvalidBusinessAddress: Invalid business address
Expand Down
2 changes: 2 additions & 0 deletions messages/fr.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
OnlyEmployeesMaySeeRequests: Seuls les employés peuvent voir les demandes
YouAreNotAnEmployeeOfFacility: Vous n'êtes pas un employé de cet établissement
InvalidBusinessTimeZone: Fuseau horaire professionnel non valide
InvalidBusinessTimeZoneOffset: Décalage de fuseau horaire professionnel non valide
InvalidBusinessAddress: Adresse professionnelle invalide
Expand Down
2 changes: 2 additions & 0 deletions messages/ro.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
OnlyEmployeesMaySeeRequests: Doar angajații pot vedea cererile
YouAreNotAnEmployeeOfFacility: Nu sunteți angajat al acestei unități
InvalidBusinessTimeZone: Fus orar al afacerii nevalid
InvalidBusinessTimeZoneOffset: Compensație nevalidă de fus orar al companiei
InvalidBusinessAddress: Adresa companiei nevalidă
Expand Down
2 changes: 2 additions & 0 deletions messages/ru.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
OnlyEmployeesMaySeeRequests: Запросы могут видеть только сотрудники
YouAreNotAnEmployeeOfFacility: Вы не сотрудник этого учреждения
InvalidBusinessTimeZone: Неверный часовой пояс компании
InvalidBusinessTimeZoneOffset: Неверное смещение часового пояса компании
InvalidBusinessAddress: Неверный адрес компании
Expand Down
4 changes: 2 additions & 2 deletions src/Admin/Contacts.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import Database.Esqueleto.Experimental
( selectOne, from, table, where_, val
, (^.), (==.)
)

import Model
( ContentsId, Contents (Contents, contentsContent)
, EntityField (ContentsSection)
Expand Down Expand Up @@ -164,7 +164,7 @@ formContacts c extra = do
x <- runDB $ selectOne $ do
y <- from $ table @Contents
where_ $ y ^. ContentsSection ==. val section
return y
return y
case x of
Just _ -> return $ Left MsgAlreadyExists
Nothing -> return $ Right text
Expand Down
Loading

0 comments on commit ef1d60b

Please sign in to comment.