|
5 | 5 | <meta charset="utf-8">
|
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
8 |
| - <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16"> |
| 8 | + <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16" parse="true"> |
9 | 9 | <title>Kanban | CoCreate</title>
|
10 | 10 | </head>
|
11 |
| - |
| 11 | + |
| 12 | + <style type="text/css"> |
| 13 | + #board{height: calc(100vh - 50px)} |
| 14 | + .card-container{height: calc(100vh - 170px)} |
| 15 | + .template{dsplay:none} |
| 16 | + </style> |
| 17 | + |
12 | 18 | <body>
|
13 | 19 | <div id="modal-viewport" hidden></div>
|
14 | 20 | <div class="nav display:flex align-items:center background:whitesmoke" content_id="content" scroll-effect="hide-nav" scroll-up="1" scroll-down="1">
|
|
28 | 34 | </li>
|
29 | 35 |
|
30 | 36 | <!-- fullscreen toogle and icon transform-->
|
31 |
| - <li class="margin-right:15px"> |
32 |
| - <a fullscreen><i toggle="fa-compress, fa-expand" class="fas fa-expand"></i></a> |
33 |
| - </li> |
| 37 | + <li class="margin-right:15px"><a fullscreen><i toggle="fa-compress, fa-expand" class="fas fa-expand"></i></a></li> |
34 | 38 |
|
35 | 39 | <!-- delete document-->
|
36 | 40 | <li class="margin-right:15px">
|
37 |
| - <a collection="modules" document_id="" pass_id="form-fields" class="btn-modal-close" actions="deleteDocument"><i class="far fa-trash-alt"></i></a> |
| 41 | + <a actions="deleteDocuments" collection="" pass_id="datatable" template_id="datatable"><i class="far fa-trash-alt"></i></a> |
38 | 42 | </li>
|
39 | 43 | </ul>
|
40 | 44 | </div>
|
41 | 45 | <div content_id="content">
|
42 | 46 |
|
43 |
| - <div id="board" class="display:flex overflow:auto height:90vh"> |
| 47 | + <div id="board" class="display:flex overflow:auto"> |
44 | 48 |
|
45 |
| - <div class="display:flex flex-wrap:nowrap flex-direction:row" dnd-group-name="stage" fetch-collection="module_activity" filter-name="module_id" filter-value="5e6d79f9d8cdbe53927a0443" filter-operator="$eq" fetch-count="" order-by="stage_position" |
46 |
| - order-type="asc" template_id="filter_test" render_id="stage" pass_id="fetch_value" droppable> |
| 49 | + <div class="display:flex flex-wrap:nowrap flex-direction:row" dnd-group-name="stage" fetch-collection="tags" filter-name="type" filter-value="60eb93a2b979b4001744b445" filter-operator="$eq" order-by="stage_position" order-type="asc" template_id="filter_test" render_id="stage" pass_id="fetch_value" droppable> |
47 | 50 |
|
48 | 51 | <!-- Stage Column -->
|
49 |
| - <div class="template margin:10px background:whitesmoke max-width:300px" template_id="filter_test" eid="{{stage._id}}" document_id="{{stage._id}}" draggable> |
50 |
| - <div class="margin:15px font-size:18px color-dark-gray"> |
| 52 | + <div class="template box-shadow-200 position:relative margin:10px background:whitesmoke width:300px" template_id="filter_test" eid="{{stage._id}}" document_id="{{stage._id}}" draggable> |
| 53 | + <div class="box-shadow-bottom position:sticky top:0 padding:15px font-size:18px z-index:1"> |
51 | 54 | <span class="display:inline-block">
|
52 |
| - <input class="input_field" |
53 |
| - collection="module_activity" |
54 |
| - document_id="{{stage._id}}" |
55 |
| - name="name" |
56 |
| - id="stage-name" |
57 |
| - placeholder="Stage"> |
| 55 | + <p collection="{{stage.collection}}" document_id="{{stage._id}}" name="name" contenteditable draggable="false"></p> |
58 | 56 | </span>
|
59 | 57 | <span class="float:right display:inline-block">
|
60 |
| - <a clone_id="stage" actions="deleteDocument" collection="module_activity" document_id="{{stage._id}}"> |
| 58 | + <a actions="deleteDocument" collection="{{stage.collection}}" document_id="{{stage._id}}"> |
61 | 59 | <i class="fas fa-times"></i>
|
62 | 60 | </a>
|
63 | 61 | </span>
|
64 | 62 | </div>
|
65 |
| - <div class="height:70vh padding:10px overflow:auto"> |
| 63 | + <div class="card-container padding:10px overflow:auto z-index:0"> |
66 | 64 |
|
67 |
| - <div class="display:flex flex-direction:column height:100% sortable" dnd-group-name="card" fetch-collection="module_activity" filter-name="stage" filter-value="{{stage._id}}" filter-operator="$eq" fetch-count="" order-by="stage-index_position" order-type="asc" template_id="{{stage._id}}" droppable> |
| 65 | + <div filter-name="module_id" filter-value="60e73c8eb979b40017448c1b" filter-operator="$eq" template_id="{{stage._id}}"></div> |
| 66 | + <div class="display:flex flex-direction:column height:100% sortable" dnd-group-name="card" fetch-collection="module_activities" filter-name="stage" filter-value="{{stage._id}}" filter-operator="$eq" order-by="stage-index_position" order-type="asc" template_id="{{stage._id}}" droppable> |
68 | 67 |
|
69 | 68 | <!-- Card -->
|
70 |
| - <div class="template card margin-bottom:10px padding:10px background:white" template_id="{{stage._id}}" value="{{data._id}}" document_id="{{data._id}}" draggable> |
| 69 | + <div class="template card position:relative margin-bottom:10px padding:10px background:white" template_id="{{stage._id}}" value="{{data._id}}" document_id="{{data._id}}" eid="{{data._id}}" draggable> |
| 70 | + <div id="editblock{{data._id}}" class="position:absolute top:8px right:8px font-size:11px display:none"> |
| 71 | + <a target="modal" href="./form.html" modal-width="320px" modal-color="#229954"> |
| 72 | + <i class="fas fa-pencil-alt"></i> |
| 73 | + <div pass-collection="{{collection}}" pass-document_id="{{data._id}}" pass_to="form-fields"></div> |
| 74 | + <div pass_id="form" pass-collection="" pass-document_id="" pass-name="" pass_to="render"></div> |
| 75 | + <div pass-value="{{data.module_id}}" pass-filter-value="{{data.module_id}}" pass_to="module_id"></div> |
| 76 | + <div pass-document_id="{{data.module_id}}" pass_to="module-form"></div> |
| 77 | + </a> |
| 78 | + </div> |
71 | 79 | <div class="width:100%">
|
72 |
| - <img collection="module_activity" document_id="{{data._id}}" name="image" src="https://via.placeholder.com/150" width="100%"></img> |
| 80 | + <img collection="module_activities" document_id="{{data._id}}" name="image" src="https://via.placeholder.com/150" width="100%"></img> |
73 | 81 | </div>
|
74 | 82 | <div class="border-bottom:1px_solid_gray margin:0px_15px">
|
75 | 83 | <div class="display:flex margin:10px_0px">
|
76 | 84 | <span class="cocreate-badge round badge-danger margin-right:10px font-size:10px padding:0px_20px"></span>
|
77 | 85 | <span class="cocreate-badge round margin-right:10px font-size:10px padding:0px_20px"></span>
|
78 | 86 | </div>
|
79 |
| - <p collection="module_activity" document_id="{{data._id}}" name="name">Card Name</p> |
| 87 | + <p collection="module_activities" document_id="{{data._id}}" name="name" contenteditable>Card Name</p> |
80 | 88 | <div class="display:flex margin:10px_0px">
|
81 | 89 | <span class="cocreate-badge badge-danger margin-right:10px font-size:14px">
|
82 | 90 | <i class="far fa-clock"></i>
|
|
100 | 108 | <div class="avatar-status off"></div>
|
101 | 109 | </div>
|
102 | 110 |
|
103 |
| - <!-- Avatar --> |
104 |
| - <div class="avatar-wrapper margin:5px_0px margin-right:10px"> |
105 |
| - <a class="avatar round" target="modal" href="render.html" pass-collection="modules" pass-prefix="" pass-module_id="5dd010bccbc25f0cdb1a4d9f" pass_to="render" modal-width="300px" modal-height="375px" modal-color="#229954"> |
106 |
| - <span collection="users" document_id="" name="name" class="sessionUser_Id first-letter avatar-name">B</span> |
107 |
| - <span collection="users" document_id="" name="profile_image" class="sessionUser_Id avatar-image"> |
108 |
| - <img src="/_static/Velazquez.jpg" onerror="this.style.display='none'"/> |
109 |
| - </span> |
110 |
| - </a> |
111 |
| - <div class="avatar-status off"></div> |
112 |
| - </div> |
113 |
| - |
114 | 111 | </div>
|
115 | 112 | </div>
|
116 | 113 | <div class="display:flex margin:15px">
|
|
124 | 121 |
|
125 | 122 | </div>
|
126 | 123 | </div>
|
127 |
| - <div class="margin:0px_15px padding:15px_0px"> |
128 |
| - <!--<a clone_id="{{stage._id}}-card" actions="createClone" clone-name="card-name"><i class="fas fa-plus"></i> New Card</a>--> |
129 |
| - <form collection="module_activity"> |
| 124 | + <div class="box-shadow-top position:absolute width:100% padding:15px" draggable="false"> |
| 125 | + <form collection="module_activities" document_id=""> |
| 126 | + <input type="hidden" document_id="" name="module_id" value="{{stage.module_id}}" pass_id="module_id"/> |
130 | 127 | <input type="hidden" document_id="" name="stage" value="{{stage._id}}" />
|
131 | 128 | <a actions="save, reset"><i class="fas fa-plus"></i> New Card</a>
|
132 | 129 | </form>
|
|
136 | 133 | </div>
|
137 | 134 | </div>
|
138 | 135 |
|
139 |
| - <form collection="module_activity"> |
140 |
| - <input type="hidden" pass_id="module_id" document_id="" name="module_id" value="5e6d79f9d8cdbe53927a0443" /> |
| 136 | + <form collection="tags" document_id=""> |
| 137 | + <input type="hidden" name="name" value="untitled"/> |
| 138 | + <input type="hidden" name="module_id" value="60e73c8eb979b40017448c1b" pass_id="module_id"/> |
| 139 | + <input type="hidden" name="type" value="60eb93a2b979b4001744b445"/> |
141 | 140 | <button class="position:fixed bottom:15px right:15px background:dodgerblue border-radius:50% grow-hover" actions="save, reset">
|
142 |
| - <i class="fas fa-plus"></i> |
143 |
| - </button> |
| 141 | + <i class="fas fa-plus"></i> |
| 142 | + </button> |
144 | 143 | </form>
|
145 | 144 |
|
146 | 145 | </div>
|
147 | 146 |
|
148 |
| - <script> |
149 |
| - var config = { |
150 |
| - apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a', |
151 |
| - organization_Id: '5de0387b12e200ea63204d6c', |
152 |
| - host: 'ws.cocreate.app' |
153 |
| - } |
154 |
| - </script> |
155 |
| - |
156 | 147 | <script src="../../../CoCreateJS/dist/CoCreate.js"></script>
|
157 | 148 |
|
158 |
| - |
159 | 149 | </body>
|
160 | 150 |
|
161 | 151 | </html>
|
0 commit comments