Nicolas Bouilleaud
bd47bf2691
Disable Messagerie in archived Dossiers and procedures
...
* Use the existing Dossier#messagerie_available? method
* Raise when attempting to build a Commentaire if not messagerie_available?
* Disable the Messagerie form if not messagerie_available?
* Add tests :)
* Tweak the Horaires formatting while we’re here.
2019-07-01 09:39:39 +02:00
Paul Chavard
c5704fa22f
Remove unused code from Commentaire
2019-06-25 17:04:29 +02:00
Pierre de La Morinerie
1a832388fe
brouillon: clarify the "How to save" explanations
2019-06-17 11:12:26 +02:00
pedong
7ef1a558f4
change date format for all, use try_format_date of helper
2019-06-12 17:48:12 +02:00
simon lehericey
ee296f2b44
Use default format for date and datetime champ
2019-06-12 17:48:12 +02:00
pedong
abcd58c35d
[ fix #3710 ] date with letter
...
Co-Authored-By: simon lehericey <mail@simon.lehericey.net>
2019-06-12 17:48:12 +02:00
Paul Chavard
5a216b5583
Fix default button type
...
fix #3924
2019-06-04 17:59:02 +02:00
Paul Chavard
ff44b7a600
Refactor purge pj to be more generic
2019-05-29 15:54:51 +02:00
Paul Chavard
f6421e081a
Refactor attachment view
2019-05-21 14:21:13 +02:00
clemkeirua
b3956bc072
introduce virus scans
2019-05-07 08:54:29 +02:00
clemkeirua
4aab72be68
implementation du systeme de PJ de motivation
2019-05-07 08:54:29 +02:00
maatinito
2308b3bc5c
[Fix 3827] Champ Pays: la ligne de tirets ne devrait pas être selectionnable
2019-05-06 14:55:29 +02:00
Paul Chavard
91f2d7d706
Remove deprecated virus_scan model
2019-05-03 11:07:19 +02:00
Paul Chavard
6e8b9cf668
Refactor piece_jointe template to avoid repetition
2019-05-02 15:58:09 +02:00
Philémon
d533abedbc
Ajout rappel enregistrement nécessaire
2019-04-18 10:25:16 +02:00
Mathieu Magnin
052bd9a9fc
[ Fix #3682 ] Remove placeholder on textarea champ
2019-04-08 16:30:16 +02:00
Mathieu Magnin
8525761332
Revert english dates
2019-04-02 14:38:47 +02:00
Mathieu Magnin
7ed1e5ac82
[ Fix #3692 ] Add HTML5 validation to ensure SIRET length is 14
2019-03-28 18:03:53 +01:00
pedong
f82fdef45f
[ fix #3342 ] format letter for date SIRET
2019-03-27 16:10:54 +01:00
pedong
fb29d30826
[ fix #3342 ] show date with format letter
2019-03-27 15:27:20 +01:00
Paul Chavard
69a51e3296
Save SIRET data on search
2019-03-19 16:22:42 +01:00
Frederic Merizen
a8ce11a4d2
Add rel=noopener to links with target=_blank
...
http://support.detectify.com/customer/portal/articles/2792257-external-links-using-target-_blank-
2019-03-05 18:25:26 +01:00
Mathieu Magnin
a977e098d5
[ Fix #3495 ] add update identité button
2019-03-05 14:52:12 +01:00
Mathieu Magnin
4f70292aed
[ Fix #1874 ] Add update SIRET button on edit page
2019-03-05 14:39:15 +01:00
Paul Chavard
4aef77788a
Include blank for regions and pays
...
fix #3523
2019-03-05 11:08:09 +01:00
Pierre de La Morinerie
1f636e4d59
piece_justificative: toggle file upload control
2019-02-19 18:02:27 +01:00
Pierre de La Morinerie
ae5e8810a5
piece_justificative: style links as buttons, and improve layout
2019-02-19 18:02:27 +01:00
Paul Chavard
aad685bb79
Show preview with correct type de champ options
...
fix #3439
2019-02-19 16:37:42 +01:00
clemkeirua
8ae468e8c7
ajout de la date de depot pour l'instructeur
2019-02-19 12:00:36 +01:00
Mathieu Magnin
b2f5ff8690
Merge branch 'dev' into fix_3417_departement_with_empty_value
2019-02-18 17:35:53 +01:00
Pierre de La Morinerie
d1f514c7b0
dossier: make clear when files are being uploaded
2019-02-18 15:31:08 +01:00
pedong
034929632b
[ fix #3417 ] add emtpy value for departement
2019-02-14 15:24:12 +01:00
Paul Chavard
f5c9b55c59
Move remove row button to the right and show button on previews
2019-02-07 13:10:29 +01:00
Paul Chavard
a0a1ce11c8
Add repetition to apercu
2019-02-07 12:29:27 +01:00
Paul Chavard
a9a853b669
Fix and simplify linked-drop-down-list js
2019-02-05 16:48:26 +01:00
Paul Chavard
071448e1d9
Champ Repetition dossier editor
2019-02-04 16:19:07 +01:00
Paul Chavard
a4a421a91a
Champ Repetition dossier display
2019-02-04 15:46:39 +01:00
Mathieu Magnin
86a2a426bb
Merge branch 'dev' into fix_3282_datatime_with_empty_value
2019-02-01 11:45:45 +01:00
Pierre de La Morinerie
934368616c
form: remove the "Delete draft" button
...
Draft can now be deleted from the dossiers list. This is the best place
to delete it (as it allow to clean the list) – and it is better than
asking the user if they want to delete a draft *precisely while they
are filling the form*.
2019-01-28 18:17:38 +01:00
pedong
ec76ff820b
[ fix #3048 ] add pattern for the champs phone
2019-01-24 18:48:57 +01:00
pedong
358c08ec29
[ fix #3282 ] add empty value for type_champ datatime
2019-01-24 14:57:21 +01:00
Pierre de La Morinerie
5719107cbc
views: fix misnamed textarea template
2019-01-10 11:26:43 +01:00
gregoirenovel
cc07f0d701
Add a blank line to improve readability
2019-01-08 12:32:27 +01:00
gregoirenovel
e4f10a3d2d
Order a case statement alphabetically
2019-01-08 12:32:26 +01:00
gregoirenovel
66c633a1e5
Mutualize some code
2019-01-08 12:32:26 +01:00
gregoirenovel
5014e3f4c1
Move the display logic directly into the carte champ partial
2019-01-08 12:32:26 +01:00
gregoirenovel
dbbe2866d5
Extract the siret champ view in a partial
2019-01-08 12:32:26 +01:00
gregoirenovel
c1ebae3ee8
Extract the textarea champ view in a partial
2019-01-08 12:32:26 +01:00
gregoirenovel
e6e67dab35
Extract multiple_drop_down_list champ view in a partial
2019-01-08 12:32:26 +01:00
gregoirenovel
81d6e193e5
Extract the piece_justificative champ view in a partial
2019-01-08 12:32:26 +01:00
gregoirenovel
c7f2293c15
Extract the dossier_link champ view in a partial
2019-01-08 12:32:26 +01:00
gregoirenovel
004cdd4c43
Add highlights to all champs
2019-01-08 12:32:26 +01:00
gregoirenovel
20ea577a66
Remove a case that can be handled by the general case
2019-01-08 12:32:26 +01:00
gregoirenovel
f9df32d72e
Use c.to_s instead of value, to avoid confusion
2019-01-08 12:32:26 +01:00
gregoirenovel
f5a31be36a
Remove the now useless #formatted_value method
2019-01-08 12:32:26 +01:00
gregoirenovel
9a2341c56c
Remove the useless #for_display proxy method
2019-01-08 12:32:26 +01:00
gregoirenovel
2e6c91e9b0
Move #selected_options to the only relevant model
2019-01-08 12:32:26 +01:00
gregoirenovel
c4b9a0b79e
Rename DropDownList#selected_options_without_decorator
2019-01-08 12:32:26 +01:00
Pierre de La Morinerie
be1567ecbd
messages: improve wording of the "Send" button
2019-01-07 16:20:23 +01:00
Pierre de La Morinerie
46b4d3c46b
messages: fix Send button being clipped on mobile screens
2019-01-07 16:20:23 +01:00
gregoirenovel
b41764ec03
Remove ChampDecorator
2019-01-03 12:08:25 +01:00
Paul Chavard
5d1c24f3d8
Add type de champ repetition models (with row)
2018-12-19 15:31:11 +01:00
Mathieu Magnin
5ab0853f1c
Harmonize user champ pj purge route to gestionnaire
2018-12-14 11:38:59 +01:00
Mathieu Magnin
edf3eefa87
Fix Sentry 114, Instructeur can delete pj in private champs
2018-12-13 17:27:05 +01:00
simon lehericey
db6c86b242
DossierController: user can destroy pjs
2018-12-06 10:45:10 +01:00
Paul Chavard
a08f170dbd
Assign users and gestionnaires to commentaires
...
fix #2052
2018-12-05 13:40:57 +01:00
Paul Chavard
c6ef30f3e1
Remove unused carto from instructeur interface
2018-11-27 16:11:25 +01:00
Paul Chavard
2462e42b53
Stop using legacy api carto after migration
2018-11-20 10:53:14 +01:00
Paul Chavard
074050a91a
Add IntegerNumberChamp
2018-11-06 11:28:44 +01:00
Paul Chavard
45bfb2fd47
Add DecimalNumberChamp
2018-11-06 11:28:44 +01:00
Frederic Merizen
06a667f353
[ Fix #2815 ] Ne pas parler de plusieur PJs quand il n'y en a qu'une
2018-10-30 11:19:17 +01:00
simon lehericey
3dad743d56
remove localtime as it uses server timezone
2018-10-26 10:10:20 +00:00
simon lehericey
f620e4aee2
DateTime.parse => Time.zone.parse
2018-10-26 10:10:20 +00:00
simon lehericey
13ffa61435
DateTime.now => Time.zone.now
2018-10-26 10:10:20 +00:00
Paul Chavard
c0344fc30e
Fix procedures with multiple dossier link champs
2018-10-24 10:44:28 +02:00
Paul Chavard
b40abaa133
Display carte champ value
2018-10-23 09:35:25 +02:00
Paul Chavard
4a097900d2
Implement carte champ editor
2018-10-23 09:35:25 +02:00
Paul Chavard
f28cfdc779
Rename shared folder carto to carte
2018-10-23 09:35:25 +02:00
gregoirenovel
3a973999a3
[Ref #2738 ] Hide exercices if not gestionnaire
2018-10-17 15:07:29 +02:00
gregoirenovel
da4037b2fd
Add a blank line
2018-10-17 12:24:00 +02:00
Paul Chavard
c63675461a
Add new carto init code
2018-10-14 12:34:43 +02:00
Paul Chavard
5a2a18d8f1
Remove previous carto init code
2018-10-14 12:34:43 +02:00
Pierre de La Morinerie
cd938b4c36
dropdown: refactor to make the button an actual button
2018-09-27 17:43:08 +02:00
Pierre de La Morinerie
0995c8e5ad
dossier: extract the invitation dropdown to a partial
2018-09-24 16:29:36 +02:00
gregoirenovel
09196d12c3
Open the notice in a new tab
2018-09-21 15:57:04 +02:00
gregoirenovel
2585485370
Move the dossier-edit class directly to the _edit.html.haml template
...
So that when the partial included in
modifier.html.haml can also benefit from its
styling rules
2018-09-21 10:35:20 +02:00
Paul Chavard
539f15af92
Fix new lines in confirm dialogs
2018-09-19 14:45:10 +02:00
Paul Chavard
55a9b31b93
Cleanup SIRET champ
2018-09-12 15:53:02 +02:00
gregoirenovel
f9230b85b2
Change CommentaireHelper#commentaire_is_from_me_class’s signature
2018-09-12 10:09:16 +02:00
gregoirenovel
c1bec7cf0b
Pass the connected_user object instead of its email
2018-09-11 18:17:40 +02:00
gregoirenovel
94e5f856d3
Extract some CSS in a .message class
2018-09-08 10:12:28 +02:00
Paul Chavard
c49db4b5a4
Add a champs/dossier_link endpoint and use it to fetch dossier info
2018-09-07 19:41:33 +01:00
Paul Chavard
5dadaa1a8d
Show brouillon tag on procedure names in user and instructeur lists
2018-09-07 11:21:50 +01:00
Pierre de La Morinerie
1da0321c26
messagerie: never display full sender email
...
See #2307
2018-09-07 12:02:26 +02:00
Pierre de La Morinerie
353ab812fc
messagerie: fix 'Invité' label in message sender
2018-09-07 12:02:26 +02:00
Pierre de La Morinerie
211674435e
messagerie: better format message dates
2018-09-07 12:02:26 +02:00
Pierre de La Morinerie
a6aac28b66
messagerie: move "Send" button to the right
2018-09-07 12:02:26 +02:00
Pierre de La Morinerie
6cd88db853
messagerie: make "Send" button primary
2018-09-07 12:02:26 +02:00
gregoirenovel
9c6a66ae75
Change the route for DossierController#modifier
...
If we submit the form, and there’s an error, the
URL would be `/dossiers/:id`, therefore
`dossier_path(dossier)`, so the Résumé tab would
be active, not the messagerie tab. This change
prevents this behaviour.
2018-09-07 11:30:00 +02:00
gregoirenovel
1341074325
Add DossierController#update
2018-09-07 10:19:10 +02:00
gregoirenovel
338ffb8b50
DossierController#update → #update_brouillon
2018-09-07 10:19:10 +02:00
gregoirenovel
be3b9382e5
Rename status partial to status_badge
2018-09-05 14:10:13 +02:00
Pierre de La Morinerie
63472f00e6
messagerie: generalize the current user email
2018-09-05 13:56:12 +02:00
Pierre de La Morinerie
4e2a5f0b9b
messagerie: move templates to a shared location
2018-09-05 13:56:12 +02:00
gregoirenovel
b9a32633bb
Rename a file with a more explicit filename
2018-09-05 10:09:59 +02:00
gregoirenovel
81e94ca631
Improve _status.html.haml
2018-09-05 10:09:59 +02:00
gregoirenovel
66af573ca4
Add a warning in the attachements part of the form
2018-08-31 00:10:16 +02:00
Frederic Merizen
37c45f0d29
[ #2486 ] Always order champs
...
to help activerecord cache the champs collection
2018-08-30 14:13:32 +02:00
gregoirenovel
2d3b553e4d
Use enum to the fullest with TypeDeChamp.type_champs
2018-08-29 17:31:08 +02:00
gregoirenovel
a86e3a3156
Don’t change a button’s text when disabled after click
2018-08-23 10:59:11 +02:00
Paul Chavard
e1f1827320
Replace typeahead with simpler autocomplete
2018-08-22 17:17:33 +02:00
Pierre de La Morinerie
86539413ee
gestionnaire: move dossier partials to a shared location
2018-08-14 15:06:44 +02:00
Pierre de La Morinerie
1b7950058d
dossier: add details résumé
2018-08-13 11:32:27 +02:00
Pierre de La Morinerie
1c02eca1be
dossier: disable buttons without changing the label
2018-08-08 16:06:12 +02:00
Paul Chavard
8b79c32a55
Do not rely on javascript for form submits without direct upload
2018-08-07 16:58:49 +02:00
Pierre de La Morinerie
c8409ecb89
dossier: remove route hack for show
2018-08-07 12:15:38 +02:00
Pierre de La Morinerie
1cac0b80af
invite: add button for invite someone to collaborate on a draft
2018-08-01 17:41:12 +02:00
Pierre de La Morinerie
0fa18c70bf
form: extract the form header to its own partial
2018-08-01 17:41:11 +02:00
Pierre de La Morinerie
a399cef144
siret: make etablissement styled and visible
2018-07-30 17:49:00 +02:00
Pierre de La Morinerie
0f1811dd4e
dossier: add an button to delete a brouillon
2018-07-24 18:31:10 +02:00
gregoirenovel
ab2181ea13
[ Fix #2280 ] Correct a typo
2018-07-20 10:23:34 +02:00
Paul Chavard
04821a6875
Disable Champ SIRET autocomplete for previews
2018-07-17 16:50:55 +02:00
Pierre de La Morinerie
0282994990
form: move the procedure notice link to a button
2018-07-11 17:13:18 +02:00
Pierre de La Morinerie
e5de401107
form: make the sample asterisk also red
2018-07-09 18:34:33 +02:00
gregoirenovel
bae4cd4f59
Fix a typo
2018-07-04 17:42:20 +02:00
Pierre de La Morinerie
f781399309
form: validate forms only when submitting dossier, not on draft saves
2018-07-02 12:30:27 +02:00
Mathieu Magnin
e694e7f9b9
[ Fix #2145 ] When procedure is archived, usager should see a message explaining dossier submission is closed
2018-07-02 11:10:34 +02:00
Pierre de La Morinerie
0cebf60c46
[ #1421 ] replace master/slave by primary/secondary
2018-06-27 17:02:46 +02:00
Frederic Merizen
dad3bc092b
[ #1421 ] linked dropdwon user view
2018-06-27 17:02:46 +02:00
Frederic Merizen
2f206af0d6
[ #1421 ] Make label clickable for drop-down lists
2018-06-27 17:02:46 +02:00
Frederic Merizen
e99931527b
[ #1421 ] Move pays to PaysChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
0239f936d7
[ #1421 ] Move departements to DepartementChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
5b59bce0b6
[ #1421 ] Move regions to RegionChamp
2018-06-19 15:20:01 +02:00
Pierre de La Morinerie
426e61777c
dossier: make the "Save changes" button title more meaningful
2018-06-19 13:46:43 +02:00
Pierre de La Morinerie
a4382ac198
dossiers: asterisque
-> astérisque
2018-06-19 13:46:43 +02:00
Pierre de La Morinerie
3ba5d654ba
editable_champs: move the label near the checkbox
2018-06-18 18:12:11 +02:00
Mathieu Magnin
6289a719ef
Display virus scan status with pj champs
2018-06-12 15:12:39 +02:00
gregoirenovel
4e9565a5df
Adds User#owns?
2018-05-31 14:39:43 +02:00
gregoirenovel
dc045bdefb
[ Fix #1808 ] Use &. where possible
2018-05-31 11:49:25 +02:00
Mathieu Magnin
cf36d7f1ed
[ Fix #1801 ] use the new string_to_html method
2018-05-24 18:05:41 +02:00
Paul Chavard
d99eed122d
Use new models in controllers and views
2018-05-24 17:54:51 +02:00
Mathieu Magnin
748300fcf7
[ Fix #1896 ] fix typo
2018-05-11 13:52:06 +02:00
simon lehericey
366ef2d2b5
Procedure: add new preview view
2018-04-24 16:54:05 +02:00
simon lehericey
1da69a7730
Dossier: extract edition view to shared template
2018-04-24 16:50:32 +02:00
Paul Chavard
c3915234c4
Champ SIRET Spinner
2018-04-17 13:49:02 +02:00
simon lehericey
bb6e94e76e
[ fix #932 ] Display pj template to usager
2018-04-09 18:19:24 +02:00
Paul Chavard
45ef32e6d9
Add SIRET Type De Champ
2018-04-05 10:29:29 +02:00
simon lehericey
48ddb4cfb6
Dossier status: add brouillon label
2018-03-29 16:23:10 +02:00
simon lehericey
88d46594e9
Dossier status: move partial dans shared
2018-03-29 16:23:10 +02:00
simon lehericey
82327b0231
champ description: add simple_format and links
2018-03-01 11:28:01 +01:00
simon lehericey
28c4dde96d
_explication: display champ.description instead of champ.value
2018-03-01 11:25:57 +01:00
simon lehericey
c343972b87
editable_champ: move partials path
2018-02-27 18:36:29 +01:00