Revision 42162
Added by Michele Artini about 8 years ago
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/web/resources/html/wf/wf-form-row-link.html | ||
---|---|---|
1 |
<div class="form-group"> |
|
2 |
<label class="col-sm-3 control-label">{{name}} |
|
3 |
<span ng-show="description" style="display: block; font-size: 75%; color: darkgrey;">{{description}}</span> |
|
4 |
</label> |
|
5 |
|
|
6 |
<div class="col-sm-9"> |
|
7 |
<p class="form-control-static"><a href="{{url}}">{{value}}</a></p> |
|
8 |
</div> |
|
9 |
</div> |
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/workflows/xslt/repoApi.xslt | ||
---|---|---|
35 | 35 |
<wf-form-row-static name="Typology" value="{./DATASOURCE_TYPE} (datasource), {$typology} (API)" style="color: #dd9900" /> |
36 | 36 |
</xsl:otherwise> |
37 | 37 |
</xsl:choose> |
38 |
<wf-form-row-link name="Institution" value="{./REPOSITORY_INSTITUTION}" url="{./REPOSITORY_WEBPAGE}" />
|
|
39 |
<wf-form-row-link name="Contact email" value="{./ADMIN_INFO}" url="{./ADMIN_INFO}" />
|
|
38 |
<wf-form-row-static name="Institution" value="{./REPOSITORY_INSTITUTION}" url="{./REPOSITORY_WEBPAGE}" />
|
|
39 |
<wf-form-row-static name="Contact email" value="{./ADMIN_INFO}" url="{./ADMIN_INFO}" />
|
|
40 | 40 |
<xsl:choose> |
41 | 41 |
<xsl:when test="string-length($country) = 2"> |
42 | 42 |
<wf-form-row-static-img name="Country" value="{$country}" img="../resources/img/flags/{$country}.gif" /> |
... | ... | |
71 | 71 |
<wf-form-row-static name="API id" value="{$ifaceId}" /> |
72 | 72 |
<wf-form-row-static name="Datasource id" value="{./DATASOURCE_ORIGINAL_ID}" /> |
73 | 73 |
<wf-form-row-static name="Datasource prefix" value="{$prefix}" /> |
74 |
<wf-form-row-link name="Profile" value="[link]" url="isManager.do#/profile/{$profileId}" />
|
|
74 |
<wf-form-row-static name="Profile" value="[link]" url="isManager.do#/profile/{$profileId}" />
|
|
75 | 75 |
|
76 | 76 |
<xsl:if test="//extra_info/extraFields/field[@name = 'last_collection_date'] and //extra_info/extraFields/field[@name = 'last_collection_mdId'] and //extra_info/extraFields/field[@name = 'last_collection_total']"> |
77 | 77 |
<hr /> |
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/workflows/xslt/wf_profile2html.xslt | ||
---|---|---|
54 | 54 |
<div class="tab-pane active" id="tabInfo"> |
55 | 55 |
<form class="form-horizontal"> |
56 | 56 |
<xsl:for-each select="//DATASOURCE"> |
57 |
<wf-form-row-link name="Datasource" value="{@name}" url="workflows.do#/api/{@id}/{@interface}"/>
|
|
57 |
<wf-form-row-static name="Datasource" value="{@name}" url="workflows.do#/api/{@id}/{@interface}"/>
|
|
58 | 58 |
<wf-form-row-static name="Interface" value="{@interface}"/> |
59 | 59 |
<wf-form-row-static name="Protocol" value="{@protocol}"/> |
60 | 60 |
|
... | ... | |
88 | 88 |
<hr/> |
89 | 89 |
</xsl:for-each> |
90 | 90 |
|
91 |
<wf-form-row-static name="Workflow" value="{$name}" value-description="{//WORKFLOW_DESCRIPTION}"/> |
|
91 |
<wf-form-row-static name="Workflow" value="{$name}" value-description="{//WORKFLOW_DESCRIPTION}" url="isManager.do#/profile/{$id}"/>
|
|
92 | 92 |
<wf-form-row-static name="Family" value="{//WORKFLOW_FAMILY}"/> |
93 | 93 |
|
94 | 94 |
<xsl:choose> |
... | ... | |
103 | 103 |
</xsl:otherwise> |
104 | 104 |
</xsl:choose> |
105 | 105 |
|
106 |
<wf-form-row-link name="Profile ID" value="{$id}" url="isManager.do#/profile/{$id}"/> |
|
107 | 106 |
|
108 | 107 |
<xsl:if test="count(//NODE[@type='LaunchWorkflow' or @type='LaunchWorkflowTemplate']) > 0"> |
108 |
<hr /> |
|
109 | 109 |
<wf-sub-workflows wf-id="{$id}"/> |
110 | 110 |
</xsl:if> |
111 | 111 |
|
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/web/resources/html/wf/wf-form-row-static.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<div class="col-sm-9"> |
7 | 7 |
<p class="form-control-static"> |
8 |
<span style="{{valueStyle}}">{{value?value:'-'}}</span> |
|
8 |
<a href="{{url}}" ng-show="url" style="{{valueStyle}}">{{value?value:'-'}}</a> |
|
9 |
<span style="{{valueStyle}}" ng-hide="url">{{value?value:'-'}}</span> |
|
9 | 10 |
<span ng-show="valueDescription" style="display: block; font-size: 90%; color: darkgrey;">{{valueDescription}}</span> |
10 | 11 |
</p> |
11 | 12 |
</div> |
modules/dnet-modular-uis/trunk/src/main/resources/eu/dnetlib/web/resources/js/workflows/wf_form_fields.js | ||
---|---|---|
42 | 42 |
value : '@', |
43 | 43 |
description : '@', |
44 | 44 |
valueDescription : '@', |
45 |
valueStyle : '@' |
|
45 |
valueStyle : '@', |
|
46 |
url : '@' |
|
46 | 47 |
}, |
47 | 48 |
templateUrl: '../resources/html/wf/wf-form-row-static.html' |
48 | 49 |
} |
... | ... | |
76 | 77 |
} |
77 | 78 |
}); |
78 | 79 |
|
79 |
wfFormFields.directive('wfFormRowLink', function () { |
|
80 |
return { |
|
81 |
restrict: 'E', |
|
82 |
scope: { |
|
83 |
name : '@', |
|
84 |
value : '@', |
|
85 |
description : '@', |
|
86 |
url : '@' |
|
87 |
}, |
|
88 |
templateUrl: '../resources/html/wf/wf-form-row-link.html' |
|
89 |
} |
|
90 |
}); |
|
91 |
|
|
92 | 80 |
wfFormFields.directive('wfFormRowStoreLink', function () { |
93 | 81 |
return { |
94 | 82 |
restrict: 'E', |
Also available in: Unified diff
cleaning