Enhancement #1434

Add a class to the "action" div in metadata form

Added by Portier Thomas over 1 year ago. Updated about 1 year ago.

Status:NewStart date:07/04/2017
Priority:NormalDue date:
Assignee:Portier Thomas% Done:

0%

Category:CATALOG
Target version:-
Sponsor: Ergonomic impact:
Functional impact:

Description

Today, we cannot distinguish the "action" div in the html form generated by easySDI.

<div class="action">Contact pour le jeu de données<a id="add-btn-sla-gmd-dp-MD_Metadata-sla-gmd-dp-identificationInfo-sla-gmd-dp-MD_DataIdentification-sla-gmd-dp-pointOfContact-e8463dd7-7ce5-4eb9-8f26-0bbfeccae602" class="btn btn-success btn-mini add-btn" data-relid="106" data-parentpath="-sla-gmd-dp-MD_Metadata-sla-gmd-dp-identificationInfo-sla-gmd-dp-MD_DataIdentification" data-lowerbound="1" data-upperbound="1" style="display: none;"><i class="icon-white icon-plus-2"></i></a>
</div>

I would like to add a class to these div to overload the css and be able to hide some "action" div. Indeed some relations are repeated twice (cf screenshot).
This class could be a slug of the relation label.

The result should be :

<div class="action contact-pour-le-jeu-de-donnees">Contact pour le jeu de données<a id="add-btn-sla-gmd-dp-MD_Metadata-sla-gmd-dp-identificationInfo-sla-gmd-dp-MD_DataIdentification-sla-gmd-dp-pointOfContact-e8463dd7-7ce5-4eb9-8f26-0bbfeccae602" class="btn btn-success btn-mini add-btn" data-relid="106" data-parentpath="-sla-gmd-dp-MD_Metadata-sla-gmd-dp-identificationInfo-sla-gmd-dp-MD_DataIdentification" data-lowerbound="1" data-upperbound="1" style="display: none;"><i class="icon-white icon-plus-2"></i></a>
</div>

What do you think about it. Or do you have an other trick?

contact.PNG (7.08 KB) Portier Thomas, 07/04/2017 04:09 PM

History

#1 Updated by Blatti Yves about 1 year ago

Hi Thomas !
I simply used the parent class, something like :

.inner-fds-sla-gmd-dp-MD_Metadata-sla-gmd-dp-distributionInfo .action {display:none;}

#2 Updated by Blatti Yves about 1 year ago

  • Assignee changed from Blatti Yves to Portier Thomas

Also available in: Atom PDF