diff --git a/src/styles/custom-grid.scss b/src/styles/custom-grid.scss index e91040146cee24b8fd718e33921d1c2246e5546f..0a7be2ee9798f25cbb78e2dfd0de24f3b9f5173c 100644 --- a/src/styles/custom-grid.scss +++ b/src/styles/custom-grid.scss @@ -5,6 +5,9 @@ justify-content: flex-start; align-items: flex-start; } +.fixWrap { + font-size: 0; +} .segment { .width-10 { diff --git a/src/styles/index.scss b/src/styles/index.scss index 9de63ac63d86b5e71bbf62a40ac404fe88723c30..2c732038ce726057c688e51c68a3291e296e9838 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -342,6 +342,10 @@ solid-form { -webkit-tap-highlight-color: var(--color-secondary); } } +.form input[type=text][disabled] { + color: #a9a7a7; + cursor: not-allowed; +} .white-space-normal { white-space: normal!important; } diff --git a/src/views-terrytories.js b/src/views-terrytories.js index 55709178d934c68aec79230f00c14904a04e930d..06173bd82487459b55f29891632f63740d6261ab 100644 --- a/src/views-terrytories.js +++ b/src/views-terrytories.js @@ -223,7 +223,13 @@ import("./utils.js").then((utils) => { > </solid-conversation> </template> - </solid-widget> + </solid-widget> + <solid-widget name="tzcld-shared-files-author-input"> + <template> + <label>Auteur *</label> + <input type="text" value="\${value}" disabled> + </template> + </solid-widget> `; return render; } @@ -1297,7 +1303,7 @@ import("./utils.js").then((utils) => { </div> <solid-form onsubmit="javascript:history.back();" - fields="segment1(segment2(title(title_prefix), segment3(name, document), segment4(author)))" + fields="segment1(segment2(title(title_prefix), segment3(name, document), segment4(author.name)))" class="segment block whitespace-normal form" class-visible="hidden" value-visible="admins" @@ -1308,7 +1314,7 @@ import("./utils.js").then((utils) => { class-date="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" class-document="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading text-top" - class-author="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading text-top" + class-author.name="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading text-top" class-name="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge text-top" widget-title="h2" @@ -1319,14 +1325,11 @@ import("./utils.js").then((utils) => { widget-document="solid-form-file-label" label-name="Titre *" - label-document="Docmuent *" - label-author="Autheur *" + label-document="Document *" widget-date="solid-form-date-label" widget-subject="solid-form-textarea-label" - widget-author="solid-form-dropdown-autocompletion-label" - order-asc-author="username" - range-author="${this.rangeUser}" + widget-author.name="tzcld-shared-files-author-input" loader-id="loader-${this.route}-${utils.TZCLD_URLS.my_territory_shared_files_edit}-${nested}" bind-resources="" solid-resource="" @@ -1337,7 +1340,6 @@ import("./utils.js").then((utils) => { required-document required-name - required-author > </solid-form> </div>