Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File attachment respects readonly #446

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<VersionPrefixCore>$(VersionPrefixBase).0</VersionPrefixCore>
<VersionPrefixIdentity>$(VersionPrefixBase).0</VersionPrefixIdentity>
<VersionPrefixIdentityUI>$(VersionPrefixBase).0</VersionPrefixIdentityUI>
<VersionPrefixCases>$(VersionPrefixBase).3</VersionPrefixCases>
<VersionPrefixCases>$(VersionPrefixBase).4</VersionPrefixCases>
<VersionPrefixMessages>$(VersionPrefixBase).0</VersionPrefixMessages>
<VersionPrefixMultitenancy>$(VersionPrefixBase).0</VersionPrefixMultitenancy>
<VersionPrefixRisk>$(VersionPrefixBase).0</VersionPrefixRisk>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[style.display]="options?.notitle ? 'none' : ''"
[innerHTML]="options?.title"></label>
<ng-container *ngIf="!isGuid(controlValue!)">
<input type="file"
<input *ngIf="!options?.readonly" type="file"
[accept]="accept"
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
Expand All @@ -22,7 +22,7 @@
(change)="onFileSelect($event)">
<p class="text-sm text-gray-900">Δεν έχει υποβληθεί κάποιο έγγραφο.</p>
</ng-container>
<div class="flex align-items-center justify-content-center align-middle" *ngIf="isGuid(controlValue!)">
<div *ngIf="isGuid(controlValue!)" class="flex align-items-center justify-content-center align-middle">
<button type="button"
(click)="onDownload()"
class="btn-default">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class TailwindFrameworkComponent implements OnInit, OnChanges {
addClasses(this.options.htmlClass, 'form-group');
this.widgetOptions.htmlClass = '';
this.options.labelHtmlClass =
addClasses(this.options.labelHtmlClass, 'form-label inline-block mb-2 text-gray-700');
addClasses(this.options.labelHtmlClass, 'form-label inline-block mb-1 text-gray-700');
this.widgetOptions.activeClass =
addClasses(this.widgetOptions.activeClass, 'active');
this.options.fieldAddonLeft =
Expand Down
4 changes: 4 additions & 0 deletions src/Indice.Features.Cases.App/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
}

.form-container {
.form-group {
@apply mb-4;
}

input[type="text"] {
@apply appearance-none border rounded w-full mb-2 py-2 px-3 text-gray-700 leading-tight focus:outline-none ring-transparent focus:border-blue-300;
}
Expand Down
7 changes: 7 additions & 0 deletions src/Indice.Features.Cases.AspNetCore/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [7.31.4] - 2024-10-15
### Added
- Added mb-4 to the every element of the case details

### Fixed
- "Choose file" button now respects readonly option set in layout

## [7.31.3] - 2024-10-15
### Fixed
- Remove attachment button is now shown only when readonly is not true
Expand Down