forked from ezsystems/ezplatform-com
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COM-20083: Package submission page (ezsystems#153)
* COM-20083: Package submission page https://jira.ez.no/browse/COM-20083 * Update app/Resources/views/themes/ezplatform/full/package_submit_success.html.twig Co-Authored-By: ciastektk <tomasz.kryszan@ez.no> * Update app/Resources/views/themes/ezplatform/full/package_add.html.twig Co-Authored-By: ciastektk <tomasz.kryszan@ez.no> * Update app/config/workflows.yml Co-Authored-By: ciastektk <tomasz.kryszan@ez.no> * Update app/config/workflows.yml Co-Authored-By: ciastektk <tomasz.kryszan@ez.no> * Update app/config/workflows.yml Co-Authored-By: ciastektk <tomasz.kryszan@ez.no>
- Loading branch information
Showing
45 changed files
with
2,073 additions
and
86 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
app/Resources/views/themes/ezplatform/full/package_add.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% extends '@ezdesign/pagelayout.html.twig' %} | ||
|
||
{% block content %} | ||
<div class="container-fluid package-add__container"> | ||
<div class="container"> | ||
<div class="row package-add__header mx-0"> | ||
<div class="col-md-4 col-xs-12 pl-md-0"> | ||
<h1 class="package-add__title">Submit a Package</h1> | ||
</div> | ||
<div class="col-md-8 col-xs-12 pr-md-0"> | ||
{% include '@ezdesign/parts/package/publication_status.html.twig' with {'step' : 'submission' } %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
{{ form_start(addForm) }} | ||
<div class="form-group"> | ||
{{ form_label(addForm.url) }} | ||
{{ form_widget(addForm.url) }} | ||
<div class="form-error"> | ||
{{ form_errors(addForm.url) }} | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
{{ form_label(addForm.name) }} | ||
{{ form_widget(addForm.name) }} | ||
<div class="form-error"> | ||
{{ form_errors(addForm.name) }} | ||
</div> | ||
</div> | ||
<div class="form-group multiple-select"> | ||
{{ form_label(addForm.categories) }} | ||
{{ form_widget(addForm.categories) }} | ||
<div class="form-error"> | ||
{{ form_errors(addForm.categories) }} | ||
</div> | ||
</div> | ||
<div class="form-group text-md-center form-btn"> | ||
<input type="submit" value="Submit Package" class="btn btn-primary"> | ||
</div> | ||
{{ form_end(addForm) }} | ||
</div> | ||
<div class="col-md-3"> | ||
<div class="doc-info"> | ||
<span>Don't you have a packagist URL?</span> | ||
<a class="d-block" href="https://doc.ezplatform.com/en/latest/tutorials/extending_admin_ui/1_creating_a_bundle/" target="_blank"> | ||
Here is how to get one | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/Resources/views/themes/ezplatform/full/package_submit_success.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends '@ezdesign/pagelayout.html.twig' %} | ||
|
||
{% block content %} | ||
<div class="container-fluid package-add__container"> | ||
<div class="container"> | ||
<div class="row package-add__header mx-0"> | ||
<div class="col-md-4 col-xs-12 pl-md-0"> | ||
<h3 class="package-add__title">Submit a Package</h3> | ||
</div> | ||
<div class="col-md-8 col-xs-12 pr-md-0"> | ||
{% include '@ezdesign/parts/package/publication_status.html.twig' with {'step' : 'moderation' } %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12 text-center submission-success"> | ||
<img class="submission-success__img img-fluid" src="{{ asset('assets/images/package-submission-success.png') }}"> | ||
<div class="submission-success__msg"> | ||
<p>The package was submitted for review.</p> | ||
<p>We will review the package and will publish it on Package Directory</p> | ||
</div> | ||
<div class="submission-success__buttons"> | ||
<a class="btn" href="{{ path(ez_route('_ezplatform_package_list')) }}">Go to Package Catalog</a> | ||
<a class="btn" href="{{ path(ez_route('_ezplatform_package_add')) }}">Submit another package</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
16 changes: 16 additions & 0 deletions
16
app/Resources/views/themes/ezplatform/parts/package/publication_status.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% if step is defined %} | ||
<ul class="package-add__publication text-md-right"> | ||
<li class="publication__step {% if step == 'submission' %}publication__step--active{% endif %}"> | ||
<p> | ||
<span class="publication__step--number">1</span> | ||
Submission | ||
</p> | ||
</li> | ||
<li class="publication__step {% if step == 'moderation' %}publication__step--active{% endif %}"> | ||
<p> | ||
<span class="publication__step--number">2</span> | ||
Moderation | ||
</p> | ||
</li> | ||
</ul> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
|
||
AppBundle\Event\Workflow\PublishOnLastStageSubscriber: | ||
arguments: | ||
$publishOnLastStageWorkflows: '%app.workflow.publish_on_last_stage%' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
|
||
AppBundle\Service\: | ||
resource: '../../../src/AppBundle/Service/*' | ||
|
||
AppBundle\Service\Package\PackageService: | ||
arguments: | ||
$parentLocationId: '%packages.location_id%' | ||
$tagsService: '@ezpublish.api.service.tags' | ||
|
||
AppBundle\Service\Cache\CacheService: | ||
arguments: | ||
$cacheExpirationTime: '%packages.cache_expiration_time%' | ||
|
||
AppBundle\Service\GitHub\GitHubServiceProvider: | ||
arguments: | ||
$authenticationToken: '%env(GITHUB_TOKEN)%' | ||
|
||
GitHub\Client: | ||
class: Github\Client | ||
|
||
EzSystems\EzPlatformAdminUi\UI\Dataset\ContentDraftsDataset: | ||
class: EzSystems\EzPlatformAdminUi\UI\Dataset\ContentDraftsDataset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
AppBundle\Validator\: | ||
resource: '../../../src/AppBundle/Validator/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ezpublish: | ||
system: | ||
default: | ||
workflows: | ||
package_workflow: | ||
name: "Package workflow" | ||
matchers: | ||
content_type: package | ||
content_status: draft | ||
stages: | ||
draft: | ||
label: 'In Review' | ||
color: '#4a69bd' | ||
approved: | ||
label: 'Approved' | ||
color: '#0f0' | ||
last_stage: true | ||
initial_stage: draft | ||
transitions: | ||
to_approved: | ||
from: draft | ||
to: approved | ||
label: 'Approve' | ||
icon: '/bundles/ezplatformadminui/img/ez-icons.svg#approved' |
Oops, something went wrong.