workflows actualizadas
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"pluginid": "47b88934-d088-4722-a675-2ef313c0e9e1",
|
||||
"name": "Patrimonio material",
|
||||
"icon": "fa fa-play-circle",
|
||||
"component": "views/components/plugins/patrimonio-material",
|
||||
"componentname": "patrimonio-material",
|
||||
"config": {
|
||||
"workflows": [
|
||||
{
|
||||
"workflowid": "9fa1f9e5-cce2-4cbc-9f3b-07cc88ce1b7a",
|
||||
"slug": "bienes-muebles-workflow",
|
||||
"name": "Bienes muebles",
|
||||
"icon": "fa fa-bell",
|
||||
"bgColor": "#87bceb",
|
||||
"circleColor": "#a7cdf0",
|
||||
"desc": "Procedimiento guiado para establecer datos básicos."
|
||||
},
|
||||
{
|
||||
"workflowid": "e8325355-52bc-4aee-8228-43b568caa310",
|
||||
"slug": "bienes-inmuebles-workflow",
|
||||
"name": "Bienes inmuebles",
|
||||
"icon": "fa fa-bank",
|
||||
"bgColor": "#62a3db",
|
||||
"circleColor": "#8bbfea",
|
||||
"desc": "Procedimiento guiado para establecer datos básicos."
|
||||
},
|
||||
{
|
||||
"workflowid": "9fb5380e-d638-4a1d-acfe-610cddf801e0",
|
||||
"slug": "sitios-arqueologicos-workflow",
|
||||
"name": "Sitios arqueológicos",
|
||||
"icon": "fa fa-map-marker",
|
||||
"bgColor": "#ccc03b",
|
||||
"circleColor": "#baaf38",
|
||||
"desc": "Procedimiento guiado para establecer datos básicos."
|
||||
}
|
||||
],
|
||||
"show": false
|
||||
},
|
||||
"slug": "patrimonio-material",
|
||||
"sortorder": 0
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="workflow-select-plugin">
|
||||
<div>
|
||||
<h2 class="workflow-select-card-container-title">Crear nuevo Patrimonio Material</h2>
|
||||
</div>
|
||||
<div class="workflow-select-card-container">
|
||||
<!-- ko foreach: {data: workflows, as: 'workflow'} -->
|
||||
<a data-bind="attr: {href: workflow.url, title: workflow.name}" href="#"><div data-bind="style: {'background-color': workflow.bgColor}" class="workflow-select-card">
|
||||
<h4 class="workflow-select-title" data-bind="text: workflow.name"></h4>
|
||||
<div data-bind="style: {'background-color': workflow.circleColor}" class="workflow-select-wf-circle">
|
||||
<span><i data-bind="attr:{class: ('fa '+workflow.icon +' workflow-select-wf-icon')}"></i></span>
|
||||
</div>
|
||||
<p data-bind="text: workflow.desc" class="workflow-select-desc"></p>
|
||||
</div></a>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,18 @@
|
||||
define([
|
||||
'knockout',
|
||||
'arches',
|
||||
'templates/views/components/plugins/patrimonio-material.htm'
|
||||
], function(ko, arches, PatrimonioMaterialTemplate) {
|
||||
|
||||
var PatrimonioMaterial = function(params) {
|
||||
this.workflows = params.workflows.map(function(wf){
|
||||
wf.url = arches.urls.plugin(wf.slug);
|
||||
return wf;
|
||||
}, this);
|
||||
};
|
||||
|
||||
return ko.components.register('patrimonio-material', {
|
||||
viewModel: PatrimonioMaterial,
|
||||
template: PatrimonioMaterialTemplate
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user