Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
padding: 36px 0 0;
}

.settings-page .mat-mdc-form-field-bottom-align::before {
margin-left: 0;
}

.settings-form {
width: 100%;
}
Expand Down Expand Up @@ -151,6 +155,11 @@
margin-top: -20px;
}

.mat-form-field_excludedFields {
margin-top: 16px;
margin-bottom: 20px;
}

.actions {
position: fixed;
left: 0;
Expand All @@ -163,6 +172,7 @@
height: 64px;
padding: 0 max(calc(50vw - 325px), 10%);
width: 100vw;
z-index: 2;
}

@media (prefers-color-scheme: dark) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ <h2 class="mat-heading-2 settings-fields__heading">Table view</h2>
<mat-hint>Choose which columns allow you to sort their values by pressing the arrow next to the column's name. Columns which aren't selected will not be sortable.</mat-hint>
</mat-form-field>

<mat-form-field appearance="outline" class="mat-form-field_excludedFields">
<mat-label>Columns to hide</mat-label>
<mat-select multiple
name="excluded_fields"
[(ngModel)]="tableSettings.excluded_fields">
<mat-option *ngFor="let field of fields_to_exclude" [value]="field">{{field}}</mat-option>
</mat-select>
<mat-hint>Choose the columns you want to hide from the "Table" view and the "Edit row" view. This also removes the option to edit them.</mat-hint>
</mat-form-field>

<h2 class="mat-heading-2" style="margin-bottom: -4px; margin-top: 12px">"Edit row" behavior</h2>
<p class="mat-body-1" style="margin-top: -16px; margin-bottom: 0; color: rgba(0,0,0,0.64)">You can edit a row by clicking on the "pencil" icon on the right.</p>
<mat-form-field appearance="outline">
Expand All @@ -156,16 +166,6 @@ <h2 class="mat-heading-2" style="margin-bottom: -4px; margin-top: 12px">"Edit ro
<mat-hint>Choose the columns Rocketadmin scans within a related table when using the foreign keys box.</mat-hint>
</mat-form-field>

<mat-form-field appearance="outline">
<mat-label>Columns to hide</mat-label>
<mat-select multiple
name="excluded_fields"
[(ngModel)]="tableSettings.excluded_fields">
<mat-option *ngFor="let field of fields_to_exclude" [value]="field">{{field}}</mat-option>
</mat-select>
<mat-hint>Choose the columns you want to hide from the "Table" view and the "Edit row" view. This also removes the option to edit them.</mat-hint>
</mat-form-field>

<mat-form-field appearance="outline">
<mat-label>Read-only fields</mat-label>
<mat-select multiple
Expand Down