This commit is contained in:
scmmishra 2019-02-19 18:25:07 +05:30
parent cb8ef96f6b
commit 62968b318f
6 changed files with 50 additions and 22 deletions

View File

@ -169,9 +169,9 @@ default_roles = [
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
]
role_home_page = {
"LMS User": "/lms"
}
# role_home_page = {
# "LMS User": "/lms"
# }
has_website_permission = {
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",

View File

@ -1,8 +1,8 @@
<template>
<section :class='sectionType'>
<div>
<h3 class='text-center' v-html="title"></h3>
<p class='lead text-center' v-html="description"></p>
<section class="featured-products-section" :class='sectionType'>
<h5 class='featured-heading' v-html="title"></h5>
<div class="featured-products">
<!-- <p class='lead text-center' v-html="description"></p> -->
<slot name="card-list-slot"></slot>
<div class='mt-4 text-center'>
<slot name="list-bottom"></slot>
@ -16,3 +16,13 @@ export default {
name: "CardList",
};
</script>
<style scoped>
.featured-heading {
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 12px;
font-weight: 500;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<div class='card-deck mt-5'>
<div class='margin'>
<div class="card">
<img v-if="program.hero_image" :src="program.hero_image" style='height: 150px; width: auto'>
<div class='card-body'>
@ -79,4 +79,14 @@ export default {
a.btn-secondary {
color: white !important;
}
.card {
border: 1px solid #ebeff2;
border-radius: 3px;
padding: 5px 15px 5px 15px;
}
.margin {
margin-top: 15px;
}
</style>

View File

@ -1,15 +1,11 @@
<template>
<section class='top-section'>
<div>
<h1 v-html="title"></h1>
<ul class="list-group">
</ul>
<p class='lead' v-html="description"></p>
<p class="mt-4">
<div class="hero">
<h1 class="text-center" v-html="title"></h1>
<p class='text-center' v-html="description"></p>
<p class="text-center padding">
<slot></slot>
</p>
</div>
</section>
</template>
<script>
@ -18,3 +14,14 @@ export default {
name: "TopSection",
};
</script>
<style scoped>
.hero {
padding-top: 50px;
padding-bottom: 100px;
}
.hero h1 {
font-size: 40px;
font-weight: 200;
}
</style>

View File

@ -5,7 +5,7 @@
</TopSection>
<CardList :title="'Featured Programs'" :description="'Master ERPNext'" :sectionType="'section-padding section-bg'">
<ProgramCard slot="card-list-slot" v-for="item in featuredPrograms" :key="item.program.name" :program="item.program" :enrolled="item.is_enrolled"/>
<AButton slot="list-bottom" :type="'primary'" :size="'lg'" :route="'List/Program'">View All</AButton>
<AButton slot="list-bottom" :type="'primary'" :size="'md'" :route="'List/Program'">View All</AButton>
</CardList>
</div>
</template>

1
erpnext/public/node_modules Symbolic link
View File

@ -0,0 +1 @@
/Users/shivammishra/Projects/ERPNext/yet-another-bench/apps/erpnext/node_modules