SenseNet / sn-client

Monorepo for sensenet client packages 🐱‍💻
https://sensenet.com
GNU General Public License v2.0
25 stars 37 forks source link

Display fields in read-only mode on Edit page #1576

Open tusmester opened 11 months ago

tusmester commented 11 months ago

There are cases when a field is not read-only, because it needs to be modified (usually by an internal logic) but we do not want the user to be able to edit it - but still want to display it. For example show the Email of the user on the Edit page in read-only mode.

New CTD setting value for visibility

Currently there is only two main modes for each view: Show and Hide. Add a new option: ShowReadOnly

<Configuration>
  <VisibleBrowse>Show</VisibleBrowse>
  <VisibleEdit>ShowReadOnly</VisibleEdit>
</Configuration>

In this case the field should be displayed in read-only mode on the Edit page.

VargaJoe commented 2 months ago

elég ennyi <VisibleEdit>ReadyOnly</VisibleEdit>